Skip to content

Commit d01780f

Browse files
Peter Rowleynashif
authored andcommitted
drivers: fuel_gauge: sbs_gauge: Fix copy/paste error in RTTF
Looks like a copy/paste error when copying runtime to empty to runtime to full. Fixing so that we're assigning to the right union member. Signed-off-by: Peter Rowley <[email protected]>
1 parent 61246e2 commit d01780f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/fuel_gauge/sbs_gauge/sbs_gauge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int sbs_gauge_get_prop(const struct device *dev, struct fuel_gauge_get_pr
9494
break;
9595
case FUEL_GAUGE_RUNTIME_TO_FULL:
9696
rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_AVG_TIME2FULL, &val);
97-
prop->value.runtime_to_empty = val;
97+
prop->value.runtime_to_full = val;
9898
break;
9999
case FUEL_GAUGE_SBS_MFR_ACCESS:
100100
rc = sbs_cmd_reg_read(dev, SBS_GAUGE_CMD_MANUFACTURER_ACCESS, &val);

0 commit comments

Comments
 (0)