added proper exiting

sammachin-gprs
James Smith 2018-09-02 17:16:12 +01:00
parent c58c9f7cc0
commit f2db60fd22
No known key found for this signature in database
GPG Key ID: BF20545FD5122D5D
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import time
# from imu import IMU
import gc
# import pyb
import app
app_path = './3dspin'
@ -357,3 +358,4 @@ while run:
time.sleep_ms(500) # Wait a while to avoid skipping ahead if the user still has the button down
if Buttons.is_pressed(Buttons.BTN_Menu):
run = False
app.restart_to_default()