demo versie 16/05

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Revision:
74:8c0068ed7c1e
Parent:
62:237e32fd3555
diff -r 939f51a1a223 -r 8c0068ed7c1e Interpreter.cpp
--- a/Interpreter.cpp	Mon May 14 20:02:42 2018 +0000
+++ b/Interpreter.cpp	Tue May 15 21:34:09 2018 +0000
@@ -2,7 +2,7 @@
 
 
 
-Interpreter::Interpreter(Queue<int,8>* queue){
+Interpreter::Interpreter(Queue<QueueMessage,1>* queue){
     Interpreter::queue=queue;
 }
 
@@ -23,9 +23,10 @@
     direction=strtok(NULL," ");
     }
     
-    for(int i=0;i<8;i++){
-        queue->put(&LED[i]);
-    }
+    QueueMessage *message=new QueueMessage();
+    memcpy(message->getArray(),LED,sizeof(LED));
+    printf("Reached this code\r\n");
+    queue->put(message);
     
     for(int i=0;i<8;i++){
        printf("LED %i, richting: %i\r\n",i,LED[i]);