Skip to content

Commit

Permalink
Update bmx280.cpp (#993)
Browse files Browse the repository at this point in the history
fix bmx280 sensor bug.

Signed-off-by: E2D <[email protected]>
  • Loading branch information
Engineer2Designer authored Jan 24, 2024
1 parent b6a720f commit ad7706f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp3d/src/modules/sensor/bmx280.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ uint8_t BMX280SensorDevice::GetModel(uint8_t i) {
const char *BMX280SensorDevice::GetCurrentModelString() {
uint8_t sensortype = ESP3DSettings::readByte(ESP_SENSOR_TYPE);
for (uint8_t i = 0; i < NB_TYPE_SENSOR; i++) {
if ((sensortype == SENSOR_TYPE[i]) {
if (sensortype == SENSOR_ID[i]) {
return SENSOR_NAME[i];
}
}
Expand Down Expand Up @@ -173,7 +173,7 @@ const char *BMX280SensorDevice::GetData() {
}
} else {
s = "DISCONNECTED";
log_esp3_ed("No valid data");
esp3d_log_e("No valid data");
}
}
} else {
Expand Down

0 comments on commit ad7706f

Please sign in to comment.