![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
Diff: Interpreter.cpp
- Revision:
- 48:0ed7f44202c0
- Parent:
- 38:47c075a354b5
- Child:
- 50:c5cd73d93045
--- 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," ");