From 1c505cd19e8e7981852fdf61014420ecb637f372 Mon Sep 17 00:00:00 2001 From: Mikhail Grushinskiy Date: Thu, 12 Dec 2024 16:43:19 -0500 Subject: [PATCH] wip --- i2c_qmp6988.h | 2 +- i2c_sht30.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/i2c_qmp6988.h b/i2c_qmp6988.h index 5140ba9..0c4129a 100644 --- a/i2c_qmp6988.h +++ b/i2c_qmp6988.h @@ -11,7 +11,7 @@ #define QMP6988_SLAVE_ADDRESS_L (0x70) #define QMP6988_SLAVE_ADDRESS_H (0x56) -m5::unit::UnitQMP6988 i2c_qmp6988_sensor; +m5::unit::UnitQMP6988 i2c_qmp6988_sensor(QMP6988_SLAVE_ADDRESS_L); bool i2c_qmp6988_found = false; void i2c_qmp6988_report() { diff --git a/i2c_sht30.h b/i2c_sht30.h index d3d2992..8726fb8 100644 --- a/i2c_sht30.h +++ b/i2c_sht30.h @@ -10,7 +10,7 @@ #define SHT3X_I2C_ADDR 0x44 -m5::unit::UnitSHT30 i2c_sht30_sensor; +m5::unit::UnitSHT30 i2c_sht30_sensor(SHT3X_I2C_ADDR); bool i2c_sht30_found = false; void i2c_sht30_report() {