emfcamp / Mk2-Firmware

Firmware that runs on the TiLDA v2 Badge
18 stars 36 forks source link

Fix occasional hangs in Snake app. #115

Closed jburgess777 closed 10 years ago

jburgess777 commented 10 years ago

The timeout passed to waitForPress() could become negative in the time elapsed between the time it is checked and used. This would cause the app to stop responding to input. The badge would eventually return to the home screen after the app was killed.