mark unimplemented virtual functions as abstract

This commit is contained in:
Sarah Tappon committed 2015-05-06 23:15:56 -07:00
1 parent c7b5e92311
commit 73a4e73c87
1 file changed
+2 -2
+2 -2
View File
@@ -144,8 +144,8 @@ class Adafruit_Sensor {
// These must be defined by the subclass
virtual void enableAutoRange(bool enabled) {};
virtual bool getEvent(sensors_event_t*);
virtual void getSensor(sensor_t*);
virtual bool getEvent(sensors_event_t*) = 0;
virtual void getSensor(sensor_t*) = 0;
private:
bool _autoRange;