A simple microwave demo

Dependencies:   C12832_lcd LM75B mbed-rtos mbed

Revision:
3:4fb0721ce794
Parent:
2:324dc8b89365
Child:
4:cd87e2050344
--- a/rtos_hwk7.cpp	Sun Mar 16 01:57:02 2014 +0000
+++ b/rtos_hwk7.cpp	Sun Mar 16 02:18:48 2014 +0000
@@ -119,7 +119,7 @@
     
 
     
-    t1.set_priority(osPriorityRealtime);
+    //t1.set_priority(osPriorityRealtime);
     proxy_state->signal_set(WAITING); //initialize all the threads
     
     while(1){
@@ -202,16 +202,10 @@
                 if(state == WAITING) proxy_timer->signal_set(TIMEDN);
                 break;
             case START:
-                if(state == WAITING){
-                    state = COOKING;
-                    proxy_state->signal_set(state);
-                }
+                if(state == WAITING) proxy_state->signal_set(COOKING); //
                 break;
             case STOP:
-                if(state == COOKING){
-                    state = DONE;
-                    proxy_state->signal_set(state);
-                }
+                if(state == COOKING) proxy_state->signal_set(state);
                 break;
             case DOOR: //door changed state
                 openDoor = !openDoor;