From 4b716751a2eae8dfbdf2f4ff6ad0d6df2bd5d9af Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sat, 4 Mar 2023 13:50:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=A9=E5=BA=A6=E4=BC=A0=E6=84=9F?= =?UTF-8?q?=E5=99=A8=E4=B8=8D=E8=AF=86=E5=88=AB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/temperature.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/temperature.c b/main/temperature.c index 58301c1..3a3f486 100644 --- a/main/temperature.c +++ b/main/temperature.c @@ -73,12 +73,12 @@ void fetch_temperature(void* arg) { } void auto_fetch_temperature() { - if (i2c_check_slave_exists(GX21M15_ADDRESS)) { - is_temperature_online = 1; - } else { - is_temperature_online = 0; - return; - } + // if (i2c_check_slave_exists(GX21M15_ADDRESS >> 1)) { + // is_temperature_online = 1; + // } else { + // is_temperature_online = 0; + // return; + // } ESP_LOGI(TEMPERATURE_TAG, "auto_fetch_temperature"); xTaskCreate(fetch_temperature, "temperature", 2048, NULL, 10, NULL); }