diff --git a/src/helpers/stm32/STM32Board.h b/src/helpers/stm32/STM32Board.h index 65c7414b..06bc768f 100644 --- a/src/helpers/stm32/STM32Board.h +++ b/src/helpers/stm32/STM32Board.h @@ -23,6 +23,13 @@ public: } void reboot() override { + NVIC_SystemReset(); + } + + void powerOff() override { + HAL_PWREx_DisableInternalWakeUpLine(); + __disable_irq(); + HAL_PWREx_EnterSHUTDOWNMode(); } #if defined(P_LORA_TX_LED)