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

@@ -301,7 +301,7 @@ void setup()
setupModules();
// Do this after service.init (because that clears error_code)
#if defined(HAS_AXP192) || defined(HAS_AXP2101)
#ifdef HAS_PMU
if (!pmu_found)
RECORD_CRITICALERROR(CriticalErrorCode_NoAXP192); // Record a hardware fault for missing hardware
#endif