Main Program

Dependencies:   mbed AQM1602 HMC6352 PID

Revision:
29:b413b0bb07a1
Parent:
28:8ac6c3c1e643
Child:
31:0b0f64831771
--- a/main_processing/setup_command_active/command.cpp	Mon Feb 01 02:05:44 2016 +0000
+++ b/main_processing/setup_command_active/command.cpp	Mon Feb 01 11:25:32 2016 +0000
@@ -81,8 +81,17 @@
 }
 uint8_t LoopFunction0(uint8_t x){
     char buf[0x10];
-    sprintf(buf, "Strategy:%2d", data.strategy);
-    Lcd.locate(0, 1);Lcd.print(buf);wait_ms(50);return 0;
+    if(x==1){
+        sprintf(buf, "Strategy:%2d", data.strategy);
+        Lcd.locate(0, 1);Lcd.print(buf);wait_ms(50);return 0;
+    }
+    if(x==2){
+        sprintf(buf, "SeeYouAgain!");
+        Lcd.locate(0, 1);Lcd.print(buf);wait(0.5);
+        NVIC_SystemReset();
+        return 1;
+    }
+    return 1;
 }
 uint8_t LoopFunction1(uint8_t x){
     char buf[0x10];