Skip to content

Commit

Permalink
找不到xgzf4000传感器初始化函数
Browse files Browse the repository at this point in the history
  • Loading branch information
dingpppp committed Jan 3, 2024
1 parent cd2ac39 commit 1096a15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/default_example/main/xgzf4000-poll-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ void app_main(void) {
ESP_ERROR_CHECK(xgzf4000_new_sensor(I2C_MASTER_NUM, I2C_MASTER_SDA_IO, I2C_MASTER_SCL_IO));


if (init_xgzf4000_sensor() != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize XGZF4000 sensor");
return;
}
// if (init_xgzf4000_sensor() != ESP_OK) {
// ESP_LOGE(TAG_XGZF, "Failed to initialize XGZF4000 sensor");
// return;
// }

while (1) {
poll_air_flow_data();
Expand Down

0 comments on commit 1096a15

Please sign in to comment.