mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15: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);
|
||||
#endif
|
||||
|
||||
#if defined(INPUTDRIVER_ENCODER_BTN)
|
||||
#ifdef INPUTDRIVER_ENCODER_BTN
|
||||
res = gpio_wakeup_enable((gpio_num_t)INPUTDRIVER_ENCODER_BTN, GPIO_INTR_LOW_LEVEL);
|
||||
assert(res == ESP_OK);
|
||||
#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);
|
||||
assert(res == ESP_OK);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user