Merge pull request #185 from codefaux/master

Typo: bool AXP20X_Class::isPEKLongtPressIRQ()
This commit is contained in:
Lewis He
2023-10-17 10:51:13 +08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -622,7 +622,7 @@ void loop()
#ifdef LILYGO_WATCH_HAS_BACKLIGHT
twatch->bl->isOn() ? twatch->bl->off() : twatch->bl->adjust(DEFAULT_BRIGHTNESS);
#endif
} else if (power->isPEKLongtPressIRQ()) {
} else if (power->isPEKLongPressIRQ()) {
Serial.println("enter power off!!!!");
/**

View File

@@ -753,7 +753,7 @@ bool AXP20X_Class::isPEKShortPressIRQ()
return (bool)(_irq[2] & BIT_MASK(1));
}
bool AXP20X_Class::isPEKLongtPressIRQ()
bool AXP20X_Class::isPEKLongPressIRQ()
{
return (bool)(_irq[2] & BIT_MASK(0));
}

View File

@@ -608,7 +608,7 @@ public:
bool isBattTempHighIRQ();
bool isPEKShortPressIRQ();
bool isPEKLongtPressIRQ();
bool isPEKLongPressIRQ();
bool isTimerTimeoutIRQ();
//! Group4 ADC data