fix: device PMU shutdown (part 2) (#3596)

* fix: device PMU shutdown (part 2)

* fix error + enable nimble deinit
This commit is contained in:
Manuel
2024-04-12 02:39:07 +02:00
committed by GitHub
parent a4a8556aa2
commit 927d07e2c6
3 changed files with 26 additions and 24 deletions

View File

@@ -500,12 +500,7 @@ void Power::shutdown()
{
LOG_INFO("Shutting down\n");
#ifdef HAS_PMU
if (pmu_found == true) {
PMU->setChargingLedMode(XPOWERS_CHG_LED_OFF);
PMU->shutdown();
}
#elif defined(ARCH_NRF52) || defined(ARCH_ESP32)
#if defined(ARCH_NRF52) || defined(ARCH_ESP32)
#ifdef PIN_LED1
ledOff(PIN_LED1);
#endif