Skip to content

Commit e381f59

Browse files
authored
Moved changes to supervisor/shared/tick.c
1 parent beb80e7 commit e381f59

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

shared-module/time/__init__.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "supervisor/port.h"
2929
#include "supervisor/shared/tick.h"
3030
#include "py/obj.h"
31-
#include "py/nlr.h"
3231
#include "py/mpstate.h"
3332

3433
uint64_t common_hal_time_monotonic(void) {
@@ -45,11 +44,4 @@ uint64_t common_hal_time_monotonic_ns(void) {
4544

4645
void common_hal_time_delay_ms(uint32_t delay) {
4746
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-
}
5547
}

0 commit comments

Comments
 (0)