forked from adafruit/Adafruit_Sensor
mark unimplemented virtual functions as abstract
This commit is contained in:
1 parent
c7b5e92311
commit
73a4e73c87
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user