Skip to content

Commit 0604626

Browse files
committed
fix bus_current field in firmware
1 parent 0bf830f commit 0604626

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/usercmodule/cexample/examplemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ STATIC mp_obj_t powerSoh_make_new(const mp_obj_type_t *type, size_t n_args, size
699699

700700
self->charge_current = getFloat(arg_vals[ARG_charge_current].u_obj);
701701
self->battery_voltage = getFloat(arg_vals[ARG_battery_voltage].u_obj);
702-
self->bus_current= arg_vals[ARG_bus_current].u_int;
702+
self->bus_current= getFloat(arg_vals[ARG_bus_current].u_obj);
703703

704704

705705
self->v3v3_voltage = getFloat(arg_vals[ARG_v3v3_voltage].u_obj);

0 commit comments

Comments
 (0)