Rename axp192_found to pmu_found to avoid confusion

This commit is contained in:
lewishe
2022-09-08 10:32:12 +08:00
parent a50a461675
commit 9244d03cf9
7 changed files with 12 additions and 12 deletions

View File

@@ -84,7 +84,7 @@ bool eink_found = true;
uint32_t serialSinceMsec;
bool axp192_found;
bool pmu_found;
// Array map of sensor types (as array index) and i2c address as value we'll find in the i2c scan
uint8_t nodeTelemetrySensorsMap[7] = { 0, 0, 0, 0, 0, 0, 0 };
@@ -302,7 +302,7 @@ void setup()
// Do this after service.init (because that clears error_code)
#if defined(HAS_AXP192) || defined(HAS_AXP2101)
if (!axp192_found)
if (!pmu_found)
RECORD_CRITICALERROR(CriticalErrorCode_NoAXP192); // Record a hardware fault for missing hardware
#endif