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

@@ -129,7 +129,7 @@ class ButtonThread : public concurrency::OSThread
// If user button is held down for 5 seconds, shutdown the device.
if ((millis() - longPressTime > 5 * 1000) && (longPressTime > 0)) {
#if defined(HAS_AXP192) || defined(HAS_AXP2101)
if (axp192_found == true) {
if (pmu_found == true) {
setLed(false);
power->shutdown();
}