Saltware / Mbed 2 deprecated Water Play

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
38:930469a33001
Parent:
10:fd4670ec0806
Child:
39:cb67926712d4
--- a/Controller.h	Tue Jun 14 15:56:14 2016 +0000
+++ b/Controller.h	Tue Jun 14 17:49:08 2016 +0000
@@ -8,8 +8,6 @@
 class Controller {
     public:
         Controller(bool threaded, int interval_ms);
-
-        virtual void update() = 0;
         
         virtual std::string get_name() = 0;
         
@@ -22,6 +20,11 @@
         void set_priority(osPriority priority);
         
         osPriority get_priority();
+        
+    protected:
+        virtual void update() = 0;
+        
+        unsigned long num_iters;
                 
     private:
         bool threaded;