The header file contains some commented out code which is there since the initial commit - there's no comment or whatsoever explaining the purpose of it. Is is just a TODO?
As the "unified" stuff seems to be just some mocking, there doesn't seem to be any need for the #include <Adafruit_Sensor.h> either? At least removing it from both the Adafruit_BME280.h-file and the bme280test.ino example sketch gets rid of the following warning at compile time:
warning: unused parameter 'enabled' in virtual void enableAutoRange(bool enabled) {};
and at least for me it doesn't seem to break anything. But I think the code author will know better than me about the reasons for this code segment...
The header file contains some commented out code which is there since the initial commit - there's no comment or whatsoever explaining the purpose of it. Is is just a TODO?
This is the code:
As the "unified" stuff seems to be just some mocking, there doesn't seem to be any need for the
#include <Adafruit_Sensor.h>
either? At least removing it from both theAdafruit_BME280.h
-file and thebme280test.ino
example sketch gets rid of the following warning at compile time:and at least for me it doesn't seem to break anything. But I think the code author will know better than me about the reasons for this code segment...