demo versie 16/05

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Revision:
54:45207965e160
Parent:
50:c5cd73d93045
Child:
62:237e32fd3555
--- a/Interpreter.cpp	Wed May 09 12:29:08 2018 +0000
+++ b/Interpreter.cpp	Wed May 09 12:31:31 2018 +0000
@@ -9,15 +9,15 @@
 
 void Interpreter::executeCommand(char* command){
     for(int i=0;i<8;i++){
-        LED[i]=-1;
-    } //Set all default on -1
+        LED[i]=4;
+    } //Set all default on 4
     
     char *ID=strtok(command,"-");
     char *direction=strtok(NULL," ");
     while((ID!=NULL)&&(direction!=NULL)){
         int IDNumber=atoi(ID);
         int directionNumber=directionToNumber(direction);
-        if((IDNumber>=0)&&(IDNumber<=11)&&(directionNumber>=-1)&&(directionNumber<=3)){
+        if((IDNumber>=0)&&(IDNumber<=11)&&(directionNumber>=0)&&(directionNumber<=4)){
             LED[IDNumber]=directionNumber;
         }
     ID=strtok(NULL,"-");
@@ -43,5 +43,5 @@
     else if(strcmp(direction,"down")==0)
         return 3;
     else 
-        return -1;
+        return 4;
 }
\ No newline at end of file