summaryrefslogtreecommitdiff
path: root/common/mock_charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/mock_charger.c')
-rw-r--r--common/mock_charger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/mock_charger.c b/common/mock_charger.c
index 47b2a96079..66033941a6 100644
--- a/common/mock_charger.c
+++ b/common/mock_charger.c
@@ -73,8 +73,9 @@ int charger_set_current(int current)
if (current > info->current_max)
current = info->current_max;
+ if (mock_current != current)
+ uart_printf("Charger set current: %d\n", current);
mock_current = current;
- uart_printf("Charger set current: %d\n", current);
return EC_SUCCESS;
}