Karpova Lab fork of stateScript

Dependencies:   SMARTWAV SOMO_II mbed

Fork of stateScript_v2_karpova by Andy Lustig

Revision:
7:42aa1e804047
Parent:
6:67d67d452545
Parent:
4:b019c133a8fb
Child:
9:f15ad8d18881
--- a/behave.cpp	Thu Jan 21 14:28:46 2016 +0000
+++ b/behave.cpp	Wed Jan 27 20:17:16 2016 +0000
@@ -2697,7 +2697,9 @@
 
                 //int is used to decalar new variables.  Only allowed outside of callbacks-------------------
                 //example: int a;  int b = 9
-            } else if (tokens[i].compare("int") == 0) { //define a new integer variable
+            }else if(tokens[i].compare("kaboom") == 0){//send "kaboom;" to reset mbed
+                mbed_reset();            
+            }else if (tokens[i].compare("int") == 0) { //define a new integer variable
                 textDisplay.debug("Int statement\r\n");
                 if (ifBlockInit || whileBlockInit || expectingDoStatement) {
                     textDisplay << "Error: expected a 'do' statement\r\n";