Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
179:35e88daf2d75
Parent:
166:8e63cd2c003a
--- a/ErrorHandler.h	Fri Aug 29 21:41:19 2014 +0000
+++ b/ErrorHandler.h	Tue Sep 09 20:41:24 2014 +0000
@@ -22,6 +22,9 @@
 // Tunables
 #include "Definitions.h"
 
+// Buffered Serial
+#include "BufferedSerial.h"
+
 // Support for std args
 #include <stdarg.h>
 
@@ -49,20 +52,20 @@
 
 class ErrorHandler {
     private:
-        Serial      *m_pc;
-        LCDCLASS    *m_lcd;
-        char         m_message[MAX_LOG_MESSAGE+1];
+        BufferedSerial *m_pc;
+        LCDCLASS       *m_lcd;
+        char            m_message[MAX_LOG_MESSAGE+1];
 #ifdef EH_USE_MUTEXES
-        Mutex       *m_mutex;
-        Mutex       *m_close_mutex;
-        Mutex       *m_led_mutex;
-        Mutex       *m_rgb_mutex;
+        Mutex          *m_mutex;
+        Mutex          *m_close_mutex;
+        Mutex          *m_led_mutex;
+        Mutex          *m_rgb_mutex;
 #endif
-        void        *m_endpoint;
-        bool         m_status_lcd;
+        void           *m_endpoint;
+        bool            m_status_lcd;
         
     public:
-        ErrorHandler(Serial *pc,LCDCLASS *lcd);
+        ErrorHandler(BufferedSerial *pc,LCDCLASS *lcd);
        ~ErrorHandler();
        
        void lcdStatusOnly(bool status_lcd);