From: jweigele Date: Thu, 13 Jul 2023 01:03:40 +0000 (-0700) Subject: Needed to update submodule to track correct branch X-Git-Url: http://git.hexthepla.net/?a=commitdiff_plain;h=7a005a64d9b9bf610b808ee377332fa2cb239877;p=esp32projects Needed to update submodule to track correct branch --- diff --git a/.gitmodules b/.gitmodules index c3b78c0..d8a6fad 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,5 @@ url = https://github.com/mjcross/esp32_onewire.git [submodule "aqi/esp32_onewire"] path = aqi/esp32_onewire - url = https://github.com/mjcross/esp32_onewire.git + url = ssh://git@git.hexthepla.net:2222/esp32_onewire + branch = main diff --git a/aqi/esp32_onewire b/aqi/esp32_onewire index a43d968..240d0e0 160000 --- a/aqi/esp32_onewire +++ b/aqi/esp32_onewire @@ -1 +1 @@ -Subproject commit a43d9683a8893b7407b96cf32d1660dbb8d22948 +Subproject commit 240d0e0408cb6dd74bddec6ee5d71cb170ec5b6a diff --git a/aqi/main/esp_zb_light.c b/aqi/main/esp_zb_light.c index a52d511..4585347 100644 --- a/aqi/main/esp_zb_light.c +++ b/aqi/main/esp_zb_light.c @@ -227,10 +227,10 @@ static void monitoring_task(void* discard) float cur_avg = get_average_pm25(data, rxBytes); ESP_LOGI(TAG, "average from last 10 seconds pm25: %f", cur_avg); ESP_LOGI(TAG, "setting attrib value and sending, I guess"); - cur_pm25 = (uint16_t)cur_avg; + cur_pm25 = cur_avg*100; esp_zb_zcl_set_attribute_val(HA_ESP_TEMP_ENDPOINT, PM25CLUSTER, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE, PM25MEASURED, &cur_pm25, false); - send_report(PM25_REPORT); + //send_report(PM25_REPORT); } else { ESP_LOGI(TAG, "Nothing seen from uart");