From 73a4e73c87ddda47e82a9d9d2ecf53c1641324db Mon Sep 17 00:00:00 2001 From: Sarah Tappon Date: Wed, 6 May 2015 23:15:56 -0700 Subject: [PATCH] mark unimplemented virtual functions as abstract --- Adafruit_Sensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_Sensor.h b/Adafruit_Sensor.h index e6b2c3d..7742afc 100644 --- a/Adafruit_Sensor.h +++ b/Adafruit_Sensor.h @@ -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;