The esp_sleep_get_ext1_wakeup_status() function returns 64-bit value. Hence, masks this value is checked against should be 64-bit as well. Especially, this is important because UP_BTN_MASK for Watchy V2 does not fit inside 32-bit integer (it's bit 35).
This change fixes this problem by using BIT64 macro instead of BIT one.
The
esp_sleep_get_ext1_wakeup_status()
function returns 64-bit value. Hence, masks this value is checked against should be 64-bit as well. Especially, this is important becauseUP_BTN_MASK
for Watchy V2 does not fit inside 32-bit integer (it's bit 35).This change fixes this problem by using
BIT64
macro instead ofBIT
one.