Skip to content

Commit 6b748a2

Browse files
committed
fixes compile error
1 parent 0bfd38d commit 6b748a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext_mod/lcd_utils/src/remap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static mp_obj_t mp_lcd_utils_remap(size_t n_args, const mp_obj_t *pos_args, mp_m
4747
ret_val = (((value - old_min) * (new_max - new_min)) / (old_max - old_min)) + new_min;
4848

4949
if (is_float) return mp_obj_new_float_from_f(ret_val);
50-
else return mp_obj_new_int((int)f_ret);
50+
else return mp_obj_new_int((int)ret_val);
5151
}
5252

5353
MP_DEFINE_CONST_FUN_OBJ_KW(mp_lcd_utils_remap_obj, 5, mp_lcd_utils_remap);

0 commit comments

Comments
 (0)