Skip to content

Commit 7ab9e78

Browse files
authored
Merge pull request #689 from tyeth/scd4x-header-rename
Update WipperSnapper_I2C_Driver_SCD4X.h - renamed include
2 parents 4f1d110 + b91a387 commit 7ab9e78

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define WipperSnapper_I2C_Driver_SCD4X_H
1919

2020
#include "WipperSnapper_I2C_Driver.h"
21-
#include <SensirionI2CScd4x.h>
21+
#include <SensirionI2cScd4x.h>
2222
#include <Wire.h>
2323

2424
/**************************************************************************/
@@ -51,8 +51,8 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
5151
*/
5252
/*******************************************************************************/
5353
bool begin() {
54-
_scd = new SensirionI2CScd4x();
55-
_scd->begin(*_i2c);
54+
_scd = new SensirionI2cScd4x();
55+
_scd->begin(*_i2c, _sensorAddress);
5656

5757
// stop previously started measurement
5858
if (_scd->stopPeriodicMeasurement())
@@ -78,7 +78,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
7878
delay(100);
7979

8080
// Check if data is ready
81-
error = _scd->getDataReadyFlag(isDataReady);
81+
error = _scd->getDataReadyStatus(isDataReady);
8282
if (error || !isDataReady)
8383
return false;
8484

@@ -145,10 +145,10 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
145145
}
146146

147147
protected:
148-
SensirionI2CScd4x *_scd; ///< SCD4x driver object
148+
SensirionI2cScd4x *_scd; ///< SCD4x driver object
149149
uint16_t _co2; ///< SCD4x co2 reading
150150
float _temperature; ///< SCD4x temperature reading
151151
float _humidity; ///< SCD4x humidity reading
152152
};
153153

154-
#endif // WipperSnapper_I2C_Driver_SCD4X
154+
#endif // WipperSnapper_I2C_Driver_SCD4X

src/network_interfaces/Wippersnapper_ESP32.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ class Wippersnapper_ESP32 : public Wippersnapper {
106106
// For boards with a "3D Antenna", we need to reduce the TX power
107107
// to prevent flaky operation.
108108
// NOTE: This is a known issue with the QT Py series of boards.
109-
#ifdef ARDUINO_ADAFRUIT_QTPY_ESP32S2 || \
110-
ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM || \
111-
ARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2 || ARDUINO_ADAFRUIT_QTPY_ESP32C3 || \
112-
ARDUINO_ADAFRUIT_QTPY_ESP32_PICO
109+
#if defined(ARDUINO_ADAFRUIT_QTPY_ESP32S2) || \
110+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM) || \
111+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2) || \
112+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32C3) || \
113+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32_PICO)
113114
WiFi.setTxPower(WIFI_POWER_15dBm);
114115
#endif
115116

0 commit comments

Comments
 (0)