Skip to content

Commit d7f0b8c

Browse files
committed
Undo changes to TwoWire
1 parent 7569e49 commit d7f0b8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SparkFunBME280.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)