File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Distributed as-is; no warranty is given.
5858#define BME280_SPI_MODE SPI_MODE0
5959#endif
6060
61- #define NO_WIRE nullptr
61+ #define NO_WIRE 0
6262#define HARD_WIRE 1
6363#define SOFT_WIRE 2
6464
@@ -265,11 +265,11 @@ class BME280
265265 void readTempFFromBurst (uint8_t buffer[], BME280_SensorMeasurements *measurements);
266266
267267 uint8_t _wireType = HARD_WIRE; // Default to Wire.h
268- TwoWire *_hardPort = nullptr ; // The generic connection to user's chosen I2C hardware
268+ TwoWire *_hardPort = NO_WIRE ; // The generic connection to user's chosen I2C hardware
269269 SPIClass *_spiPort = &SPI; // The generic connection to user's chosen SPI hardware
270270
271271 #ifdef SoftwareWire_h
272- SoftwareWire *_softPort = nullptr ; // Or, the generic connection to software wire port
272+ SoftwareWire *_softPort = NO_WIRE ; // Or, the generic connection to software wire port
273273 #endif
274274
275275 float _referencePressure = 101325.0 ; // Default but is changeable
You can’t perform that action at this time.
0 commit comments