summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mptask.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/mptask.c')
-rw-r--r--cc3200/mptask.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index f14200ac37..6d66c90742 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -105,7 +105,10 @@ void TASK_Micropython (void *pvParameters) {
// initialize the garbage collector with the top of our stack
uint32_t sp = gc_helper_get_sp();
gc_collect_init (sp);
- bool safeboot = false;
+
+#ifndef DEBUG
+ bool safeboot = PRCMGetSpecialBit(PRCM_SAFE_BOOT_BIT);
+#endif
mptask_pre_init();
@@ -161,9 +164,6 @@ soft_reset:
else {
// only if not comming out of hibernate or a soft reset
mptask_enter_ap_mode();
- #ifndef DEBUG
- safeboot = PRCMIsSafeBootRequested();
- #endif
}
// enable telnet and ftp