Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch committed Dec 12, 2024
1 parent 34d608b commit 9e1c021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion i2c_qmp6988.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void i2c_qmp6988_report() {

void i2c_qmp6988_try_init() {
for (int i = 0; i < 3; i++) {
i2c_qmp6988_found = i2c_qmp6988_sensor.begin(&Wire, QMP6988_SLAVE_ADDRESS_L, G2, G1, 100000U);
i2c_qmp6988_found = Units.add(i2c_qmp6988_sensor, Wire) && i2c_qmp6988_sensor.begin();
if (i2c_qmp6988_found) {
break;
}
Expand Down
1 change: 1 addition & 0 deletions i2c_sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void i2c_sensors_scan() {
i2c_ads1115_try_init();
i2c_sht30_try_init();
i2c_qmp6988_try_init();
Units.begin();
}

void i2c_sensors_update() {
Expand Down

0 comments on commit 9e1c021

Please sign in to comment.