homework 7

Dependencies:   mbed-rtos mbed C12832_lcd LM75B

Revision:
83:2e01f2a799ba
Parent:
82:73fa3fe8a217
Child:
84:fee8fb80d190
--- a/main.cpp	Thu Sep 12 04:47:43 2013 +0000
+++ b/main.cpp	Thu Sep 12 04:48:57 2013 +0000
@@ -311,14 +311,14 @@
 
     void threadCookStateFSM(void const *args)   // cook-cycle FSM.
     {
-      static int   dFSMstate     = FSM_IDLE;    // state of this FSM.    
-      static int   dFSMstateLast = FSM_IDLE;    // previous FSM state.
-      static int   dButtonState;                // received button state.
-      static int   dRemainingTime = 0;          // received remaining time.
+      int   dFSMstate     = FSM_IDLE;    // state of this FSM.    
+      int   dFSMstateLast = FSM_IDLE;    // previous FSM state.
+      int   dButtonState;                // received button state.
+      int   dRemainingTime = 0;          // received remaining time.
       
-      static int   dButtonStart   = 0;
-      static int   dButtonStop    = 0;
-      static int   dDoorOpen      = 0;
+      int   dButtonStart   = 0;
+      int   dButtonStop    = 0;
+      int   dDoorOpen      = 0;
             
       osEvent   queueEvent;                     // from button state manager.