esp32: Use esp_restart from reset_to_bootloader; redeclare it NORETURN
This commit is contained in:
parent
726dcdb60a
commit
1dbb59271c
@ -56,6 +56,8 @@ uint32_t heap_size;
|
||||
|
||||
STATIC esp_timer_handle_t _tick_timer;
|
||||
|
||||
extern void esp_restart(void) NORETURN;
|
||||
|
||||
void tick_timer_cb(void* arg) {
|
||||
supervisor_tick();
|
||||
}
|
||||
@ -118,6 +120,7 @@ void reset_port(void) {
|
||||
}
|
||||
|
||||
void reset_to_bootloader(void) {
|
||||
esp_restart();
|
||||
}
|
||||
|
||||
void reset_cpu(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user