Skip to content

Commit 132ed2e

Browse files
committed
sensor: shell_battery: display labels for capacity are mAh
Update the units labels to be mAh Signed-off-by: Marc Reilly <[email protected]>
1 parent 76ce882 commit 132ed2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/sensor/shell_battery.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ static int cmd_battery(const struct shell *sh, size_t argc, char **argv)
110110
shell_print(sh, "Charge: %d %%", charge.val1);
111111
shell_print(sh, "V-design: %d.%02d V",
112112
v_design.val1, v_design.val2 / 10000);
113-
shell_print(sh, "Remaining: %d mA",
113+
shell_print(sh, "Remaining: %d mAh",
114114
charge_remain.val1);
115-
shell_print(sh, "Cap-full: %d mA", cap.val1);
116-
shell_print(sh, "Design: %d mA", nom_cap.val1);
115+
shell_print(sh, "Cap-full: %d mAh", cap.val1);
116+
shell_print(sh, "Design: %d mAh", nom_cap.val1);
117117
shell_print(sh, "Time full: %dh:%02d",
118118
full.val1 / 60, full.val1 % 60);
119119
shell_print(sh, "Time empty: %dh:%02d",

0 commit comments

Comments
 (0)