From 19c254a2df43426e6b703c096932c94b611737b7 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Tue, 4 Mar 2014 20:04:36 +0100 Subject: [PATCH] Added auto-range function --- Adafruit_Sensor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Adafruit_Sensor.h b/Adafruit_Sensor.h index 967c9e9..7c0db4f 100644 --- a/Adafruit_Sensor.h +++ b/Adafruit_Sensor.h @@ -139,12 +139,15 @@ typedef struct class Adafruit_Sensor { public: // Constructor(s) - // Adafruit_Sensor(); void constructor(); // These must be defined by the subclass + virtual void enableAutoRange(bool enabled) {}; virtual void getEvent(sensors_event_t*); virtual void getSensor(sensor_t*); + + private: + bool _autoRange; }; #endif