First version

Dependencies:   mbed EthernetInterface mbed-rto

Revision:
46:0ed7f44202c0
Parent:
38:47c075a354b5
Child:
48:c5cd73d93045
diff -r 2d877f01ca7b -r 0ed7f44202c0 Interpreter.cpp
--- a/Interpreter.cpp	Wed May 09 07:24:39 2018 +0000
+++ b/Interpreter.cpp	Wed May 09 07:45:44 2018 +0000
@@ -8,7 +8,7 @@
 
 void Interpreter::executeCommand(char* command){
     for(int i=0;i<8;i++){
-        LED[i]=1;
+        LED[i]=-1;
     } //Set all default on -1
     
     char *ID=strtok(command,"-");
@@ -17,9 +17,7 @@
         int IDNumber=atoi(ID);
         int directionNumber=directionToNumber(direction);
         if((IDNumber>=0)&&(IDNumber<=11)&&(directionNumber>=-1)&&(directionNumber<=3)){
-            //lock->lock();
             LED[IDNumber]=directionNumber;
-            //lock->unlock();
         }
     ID=strtok(NULL,"-");
     direction=strtok(NULL," ");