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:
32:56a11a9a35a2
Parent:
29:9a99f076129a
Child:
47:fa96ddc36f04
--- a/MBEDLight.cpp	Fri Feb 28 05:07:44 2014 +0000
+++ b/MBEDLight.cpp	Fri Feb 28 05:19:52 2014 +0000
@@ -38,15 +38,15 @@
  }
  
  // turn ON 
- void MBEDLight::on() { _light_1 = 1; _light_2 = 1; ((Light *)this)->on(); }
+ void MBEDLight::on() { _light_1 = 1; _light_2 = 1; Light::on(); }
  
  // turn OFF 
- void MBEDLight::off() { _light_1 = 0; _light_2 = 0; ((Light *)this)->off(); }
+ void MBEDLight::off() { _light_1 = 0; _light_2 = 0; Light::off(); }
  
  // dim 
  void MBEDLight::dim(int value) { 
     float dim_val = (float)(value/100.0);
     _light_1.write(dim_val);
     _light_2.write(dim_val);
-    ((Light *)this)->dim(value);
+    Light::dim(value);
  }
\ No newline at end of file