Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL2

Dependencies:   mbed

Revision:
7:860b3a8275cb
Parent:
6:39442d493098
Child:
8:d3d7dca419b3
diff -r 39442d493098 -r 860b3a8275cb src/command.cpp
--- a/src/command.cpp	Mon Dec 03 01:03:14 2018 +0000
+++ b/src/command.cpp	Wed Dec 05 00:20:34 2018 +0000
@@ -1403,15 +1403,22 @@
    }
    else if (!strcmp(commandString, "ALLOFF"))
    {
+      
       //hv_en = 1;
-      wr_out_code = setBoardEnables(ALLOFF);
+      //wr_out_code = setBoardEnables((unsigned int)ALLOFF);
+      my12 = 0;
+      running = FALSE;
       //setBoardEnables((unsigned int *)alloff);
+      if(DEBUG){
+        sprintf(strbuf, "wr_out_code=%d\r\n", wr_out_code);
+        sendSerial(strbuf);
+      }
    }
    else if (!strcmp(commandString, "ALLON"))
    {
       //hv_en = 0;
       //setBoardEnables((unsigned int *)allon);
-      wr_out_code = setBoardEnables(ALLON);
+      wr_out_code = setBoardEnables((unsigned int)ALLON);
    }
    else if (!strcmp(commandString, "DWL1_OV_TIME"))
    {