diff --git a/src/Power.cpp b/src/Power.cpp index feb7930a..6d95e2e0 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -5,6 +5,7 @@ #include "main.h" #include "sleep.h" #include "utils.h" +#include "buzz/buzz.h" #ifdef TBEAM_V10 // FIXME. nasty hack cleanup how we load axp192 @@ -211,8 +212,12 @@ void Power::shutdown() { #ifdef TBEAM_V10 DEBUG_MSG("Shutting down\n"); + axp.setChgLEDMode(AXP20X_LED_OFF); axp.shutdown(); #elif NRF52_SERIES + playBeep(); + ledOff(PIN_LED1); + ledOff(PIN_LED2); doDeepSleep(DELAY_FOREVER); #endif } diff --git a/src/shutdown.h b/src/shutdown.h index 3b703331..57cd1b69 100644 --- a/src/shutdown.h +++ b/src/shutdown.h @@ -30,7 +30,7 @@ void powerCommandsCheck() DEBUG_MSG("Shutting down from admin command\n"); #ifdef TBEAM_V10 if (axp192_found == true) { - // setLed(false); //TODO: FIXME: this is not working + playShutdownMelody(); power->shutdown(); } #elif NRF52_SERIES