mark unimplemented virtual functions as abstract
This commit is contained in:
parent
c7b5e92311
commit
73a4e73c87
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue