From f2db60fd226fc228f2ad1d6c9e00f53f1a0336d6 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 2 Sep 2018 17:16:12 +0100 Subject: [PATCH] added proper exiting --- 3dspin/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3dspin/main.py b/3dspin/main.py index 62ffc33..10f9ac4 100644 --- a/3dspin/main.py +++ b/3dspin/main.py @@ -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()