Simplify HAS_PMU macro definition

This commit is contained in:
lewishe
2022-09-08 10:36:53 +08:00
parent 9244d03cf9
commit 35c77ef99c
7 changed files with 15 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ void powerCommandsCheck()
if (shutdownAtMsec && millis() > shutdownAtMsec) {
DEBUG_MSG("Shutting down from admin command\n");
#if defined(HAS_AXP192) || defined(HAS_AXP2101)
#ifdef HAS_PMU
if (pmu_found == true) {
playShutdownMelody();
power->shutdown();