We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c3482b commit 8345775Copy full SHA for 8345775
drivers/fuel_gauge/sbs_gauge/sbs_gauge.c
@@ -83,7 +83,7 @@ static int sbs_gauge_get_prop(const struct device *dev, fuel_gauge_prop_t prop,
83
break;
84
case FUEL_GAUGE_CURRENT:
85
rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_CURRENT, &tmp_val);
86
- val->current = tmp_val * 1000;
+ val->current = (int16_t)tmp_val * 1000;
87
88
case FUEL_GAUGE_FULL_CHARGE_CAPACITY:
89
rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_FULL_CAPACITY, &tmp_val);
0 commit comments