sqfmi / Watchy

Watchy - An Open Source E-Ink Smartwatch
http://www.sqfmi.com
MIT License
1.83k stars 319 forks source link

Use correct 64-bit integer size for button masks. #256

Closed OlegGirko closed 3 days ago

OlegGirko commented 3 days ago

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.

sqfmi commented 3 days ago

Awesome, thank you!