From 06b6a10a5e54b7ba7421e2fc7ca42a2172773398 Mon Sep 17 00:00:00 2001 From: Roy Hooper Date: Mon, 14 May 2018 17:44:50 -0400 Subject: [PATCH] switch autoreload to reloadexception --- supervisor/shared/autoreload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervisor/shared/autoreload.c b/supervisor/shared/autoreload.c index fc70991fb1..2a7fd1e9d8 100644 --- a/supervisor/shared/autoreload.c +++ b/supervisor/shared/autoreload.c @@ -26,8 +26,8 @@ #include "autoreload.h" -#include "lib/utils/interrupt_char.h" #include "py/mphal.h" +#include "py/reload.h" volatile uint32_t autoreload_delay_ms = 0; bool autoreload_enabled = false; @@ -40,7 +40,7 @@ inline void autoreload_tick() { } if (autoreload_delay_ms == 1 && autoreload_enabled && !autoreload_suspended && !reload_requested) { - mp_keyboard_interrupt(); + mp_raise_reload_exception(); reload_requested = true; } autoreload_delay_ms--;