fix: device PMU shutdown (part 2) (#3596)
* fix: device PMU shutdown (part 2) * fix error + enable nimble deinit
This commit is contained in:
1 parent
a4a8556aa2
commit
927d07e2c6
3 files changed
+26
-24
No files matched your search
+1
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user