uasyncio: fix definition of ticks again
supervisor_ticks_ms is ALREADY a small int, so passing it to MP_OBJ_SMALL_INT again messes things up. I don't know why this passed muster with the C type system, but oh well.
This commit is contained in:
parent
ae2bbbb8e7
commit
9dc559bb90
|
@ -83,7 +83,7 @@ STATIC mp_obj_t ticks(void) {
|
||||||
// shared-bindings/supervisor/__init__.c). We assume/require that
|
// shared-bindings/supervisor/__init__.c). We assume/require that
|
||||||
// supervisor.ticks_ms is picked as the ticks implementation under
|
// supervisor.ticks_ms is picked as the ticks implementation under
|
||||||
// CircuitPython for the Python-coded bits of asyncio.
|
// CircuitPython for the Python-coded bits of asyncio.
|
||||||
#define ticks() MP_OBJ_NEW_SMALL_INT(supervisor_ticks_ms())
|
#define ticks() supervisor_ticks_ms()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
STATIC mp_int_t ticks_diff(mp_obj_t t1_in, mp_obj_t t0_in) {
|
STATIC mp_int_t ticks_diff(mp_obj_t t1_in, mp_obj_t t0_in) {
|
||||||
|
|
Loading…
Reference in New Issue