summaryrefslogtreecommitdiff
path: root/Debugger/debug_runlooptasks.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-22 10:54:18 +0800
committerTat-Chee Wan (USM)2011-06-22 10:54:18 +0800
commit37f536b128cec0e4d25cb827bb90ae20368795c6 (patch)
treece9bb417227451523ce34d7fcc3e69c28deef50b /Debugger/debug_runlooptasks.S
parentabedf371a610485c3de77af2a05e2699627ff358 (diff)
power down brick when kill command received
Instead of rebooting, power down the brick when kill command received, to be consistent with NXT firmware behavior
Diffstat (limited to 'Debugger/debug_runlooptasks.S')
-rw-r--r--Debugger/debug_runlooptasks.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/Debugger/debug_runlooptasks.S b/Debugger/debug_runlooptasks.S
index 75c477c..91e0fa9 100644
--- a/Debugger/debug_runlooptasks.S
+++ b/Debugger/debug_runlooptasks.S
@@ -113,7 +113,11 @@ dbg__runloopTasks:
*
****************************************************************************/
dbg__reboot:
+#ifdef REBOOT_POWERDOWN
+ b nx_core_halt /* Shutdown Brick, won't return */
+#else
b nx_core_reset /* Reboot Brick, won't return */
+#endif
#else
/****************************************************************************