Skip to content

Commit 06b6a10

Browse files
committed
switch autoreload to reloadexception
1 parent 92b1cb5 commit 06b6a10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

supervisor/shared/autoreload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
#include "autoreload.h"
2828

29-
#include "lib/utils/interrupt_char.h"
3029
#include "py/mphal.h"
30+
#include "py/reload.h"
3131

3232
volatile uint32_t autoreload_delay_ms = 0;
3333
bool autoreload_enabled = false;
@@ -40,7 +40,7 @@ inline void autoreload_tick() {
4040
}
4141
if (autoreload_delay_ms == 1 && autoreload_enabled &&
4242
!autoreload_suspended && !reload_requested) {
43-
mp_keyboard_interrupt();
43+
mp_raise_reload_exception();
4444
reload_requested = true;
4545
}
4646
autoreload_delay_ms--;

0 commit comments

Comments
 (0)