forked from adafruit/Adafruit_Sensor
mark unimplemented virtual functions as abstract
This commit is contained in:
@ -144,8 +144,8 @@ class Adafruit_Sensor {
|
|||||||
|
|
||||||
// These must be defined by the subclass
|
// These must be defined by the subclass
|
||||||
virtual void enableAutoRange(bool enabled) {};
|
virtual void enableAutoRange(bool enabled) {};
|
||||||
virtual bool getEvent(sensors_event_t*);
|
virtual bool getEvent(sensors_event_t*) = 0;
|
||||||
virtual void getSensor(sensor_t*);
|
virtual void getSensor(sensor_t*) = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool _autoRange;
|
bool _autoRange;
|
||||||
|
Reference in New Issue
Block a user