This commit is contained in:
Thomas Göttgens 2022-06-06 18:48:22 +02:00
parent 67cf3018b5
commit ebf132ad21
2 changed files with 5 additions and 1 deletions

View File

@ -211,8 +211,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
}

View File

@ -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