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); }