From 7a005a64d9b9bf610b808ee377332fa2cb239877 Mon Sep 17 00:00:00 2001 From: jweigele Date: Wed, 12 Jul 2023 18:03:40 -0700 Subject: [PATCH] Needed to update submodule to track correct branch --- .gitmodules | 3 ++- aqi/esp32_onewire | 2 +- aqi/main/esp_zb_light.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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"); -- 2.30.2