summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-12-22 16:13:02 -0800
committerScott Shawcroft <scott@tannewt.org>2020-12-22 16:13:02 -0800
commit1fca297a2d2bfefb1cdef3ecbac05f54d15e08eb (patch)
treee9273efad20b60e5a7e2864ffc3f0fd53ed531c9 /py
parentd4e9eea397c887d9eceb5f4c6aba117a4dc3d03b (diff)
A couple sleep fixes
* Better messaging when code is stopped by an auto-reload. * Auto-reload works during sleeps on ESP32-S2. Ticks wake up the main task each time. * Made internal naming consistent. CamelCase Python names are NOT separated by an underscore.
Diffstat (limited to 'py')
-rw-r--r--py/obj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.c b/py/obj.c
index 218fb4321..5f19089e8 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -68,10 +68,12 @@ void mp_obj_print_helper(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t
#ifdef RUN_BACKGROUND_TASKS
RUN_BACKGROUND_TASKS;
#endif
+ #if MICROPY_KBD_EXCEPTION
// Stop printing if we've been interrupted.
if (mp_hal_is_interrupted()) {
return;
}
+ #endif
#ifndef NDEBUG
if (o_in == MP_OBJ_NULL) {