Skip to content

Commit

Permalink
BOARD_IS_RESTART_ALLOWED
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawzygmunt committed Dec 4, 2020
1 parent ae7bd76 commit 1d930bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/user/user_main.c
Expand Up @@ -72,6 +72,12 @@ uint32 MAIN_ICACHE_FLASH uptime_sec(void) {

void MAIN_ICACHE_FLASH supla_system_restart(void) {

#ifdef BOARD_IS_RESTART_ALLOWED
if (supla_esp_board_is_restart_allowed() == 0) {
return;
}
#endif

supla_esp_devconn_before_system_restart();

#ifdef BOARD_BEFORE_REBOOT
Expand Down

0 comments on commit 1d930bb

Please sign in to comment.