summaryrefslogtreecommitdiff
path: root/shared-bindings/_pixelbuf
diff options
context:
space:
mode:
authormicroDev <70126934+microDev1@users.noreply.github.com>2021-01-12 18:28:38 +0530
committermicroDev <70126934+microDev1@users.noreply.github.com>2021-01-12 18:28:38 +0530
commitcd16f29efdc2df4544ffcccca5ae227be2f816ba (patch)
tree8a90c5519f5b478d72d1647f7a537918bb543fdd /shared-bindings/_pixelbuf
parent5f448139e0c5972def8a8f138cd29afd1e9222f8 (diff)
parent047708e36e67beee14771120296cdf758f00601d (diff)
Merge branch 'main' into TouchAlarm
Diffstat (limited to 'shared-bindings/_pixelbuf')
-rw-r--r--shared-bindings/_pixelbuf/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/_pixelbuf/__init__.c b/shared-bindings/_pixelbuf/__init__.c
index c61acc939..fdd02509c 100644
--- a/shared-bindings/_pixelbuf/__init__.c
+++ b/shared-bindings/_pixelbuf/__init__.c
@@ -51,7 +51,7 @@
//|
STATIC mp_obj_t pixelbuf_colorwheel(mp_obj_t n) {
- return MP_OBJ_NEW_SMALL_INT(colorwheel(MP_OBJ_IS_SMALL_INT(n) ? MP_OBJ_SMALL_INT_VALUE(n) : mp_obj_float_get(n)));
+ return MP_OBJ_NEW_SMALL_INT(colorwheel(MP_OBJ_IS_SMALL_INT(n) ? MP_OBJ_SMALL_INT_VALUE(n) : mp_obj_get_float(n)));
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_colorwheel_obj, pixelbuf_colorwheel);