Remove redundant power interrupt methods for ESP32
This commit is contained in:
@@ -102,14 +102,6 @@ class Power : public concurrency::OSThread
|
|||||||
const uint16_t OCV[11] = {OCV_ARRAY};
|
const uint16_t OCV[11] = {OCV_ARRAY};
|
||||||
bool isLowBattery() { return low_voltage_counter >= 10; };
|
bool isLowBattery() { return low_voltage_counter >= 10; };
|
||||||
|
|
||||||
#ifdef ARCH_ESP32
|
|
||||||
int beforeLightSleep(void *unused);
|
|
||||||
int afterLightSleep(esp_sleep_wakeup_cause_t cause);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void attachPowerInterrupts();
|
|
||||||
void detachPowerInterrupts();
|
|
||||||
|
|
||||||
#ifdef ARCH_ESP32
|
#ifdef ARCH_ESP32
|
||||||
int beforeLightSleep(void *unused);
|
int beforeLightSleep(void *unused);
|
||||||
int afterLightSleep(esp_sleep_wakeup_cause_t cause);
|
int afterLightSleep(esp_sleep_wakeup_cause_t cause);
|
||||||
|
|||||||
Reference in New Issue
Block a user