mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
add assertion for gpio_wakeup_enable calls
This commit is contained in:
parent
850407beba
commit
759b3a09e8
@ -398,11 +398,11 @@ void doLightSleep(uint32_t sleepMsec)
|
|||||||
gpio_hold_en((gpio_num_t)RESET_OLED);
|
gpio_hold_en((gpio_num_t)RESET_OLED);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(INPUTDRIVER_ENCODER_BTN)
|
#ifdef INPUTDRIVER_ENCODER_BTN
|
||||||
res = gpio_wakeup_enable((gpio_num_t)INPUTDRIVER_ENCODER_BTN, GPIO_INTR_LOW_LEVEL);
|
res = gpio_wakeup_enable((gpio_num_t)INPUTDRIVER_ENCODER_BTN, GPIO_INTR_LOW_LEVEL);
|
||||||
assert(res == ESP_OK);
|
assert(res == ESP_OK);
|
||||||
#endif
|
#endif
|
||||||
#if defined(WAKE_ON_TOUCH)
|
#if defined(T_WATCH_S3) || defined(ELECROW)
|
||||||
res = gpio_wakeup_enable((gpio_num_t)SCREEN_TOUCH_INT, GPIO_INTR_LOW_LEVEL);
|
res = gpio_wakeup_enable((gpio_num_t)SCREEN_TOUCH_INT, GPIO_INTR_LOW_LEVEL);
|
||||||
assert(res == ESP_OK);
|
assert(res == ESP_OK);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user