diff options
| author | microDev <70126934+microDev1@users.noreply.github.com> | 2021-01-12 18:28:38 +0530 |
|---|---|---|
| committer | microDev <70126934+microDev1@users.noreply.github.com> | 2021-01-12 18:28:38 +0530 |
| commit | cd16f29efdc2df4544ffcccca5ae227be2f816ba (patch) | |
| tree | 8a90c5519f5b478d72d1647f7a537918bb543fdd /shared-bindings/_pixelbuf/__init__.c | |
| parent | 5f448139e0c5972def8a8f138cd29afd1e9222f8 (diff) | |
| parent | 047708e36e67beee14771120296cdf758f00601d (diff) | |
Merge branch 'main' into TouchAlarm
Diffstat (limited to 'shared-bindings/_pixelbuf/__init__.c')
| -rw-r--r-- | shared-bindings/_pixelbuf/__init__.c | 2 |
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); |
