We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beb80e7 commit e381f59Copy full SHA for e381f59
shared-module/time/__init__.c
@@ -28,7 +28,6 @@
28
#include "supervisor/port.h"
29
#include "supervisor/shared/tick.h"
30
#include "py/obj.h"
31
-#include "py/nlr.h"
32
#include "py/mpstate.h"
33
34
uint64_t common_hal_time_monotonic(void) {
@@ -45,11 +44,4 @@ uint64_t common_hal_time_monotonic_ns(void) {
45
44
46
void common_hal_time_delay_ms(uint32_t delay) {
47
mp_hal_delay_ms(delay);
48
- // if the delay was cut short by a CTRL-C then clear the keyboard exception
49
- if(MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)))
50
- {
51
- // clear exception and generate stacktrace
52
- MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL;
53
- nlr_raise(mp_obj_new_exception(&mp_type_KeyboardInterrupt));
54
- }
55
}
0 commit comments