sqfmi / Watchy

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

To avoid being stuck in the fastmenu function #207

Open Ray4san opened 1 year ago

Ray4san commented 1 year ago

Hi, I was trying to add a little pet on my watchface and use buttons to interact with it,I found that the buttons sometimes fail due to a wrong return value 0 “esp_sleep_get_ext1_wakeup_status()” gets,and it won't recover until timeout.
After the following line added in while(!timeout) scope, the problem fixed. if (guiState == WATCHFACE_STATE) break; Hope this could help.