Needed to update submodule to track correct branch
authorjweigele <jweigele@local>
Thu, 13 Jul 2023 01:03:40 +0000 (18:03 -0700)
committerjweigele <jweigele@local>
Thu, 13 Jul 2023 01:12:43 +0000 (18:12 -0700)
.gitmodules
aqi/esp32_onewire
aqi/main/esp_zb_light.c

index c3b78c04e13d7fa19a87d9dc942caa4d71399eb2..d8a6fadfe4f35928f05ce7047b6f8ec26f04d490 100644 (file)
@@ -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
index a43d9683a8893b7407b96cf32d1660dbb8d22948..240d0e0408cb6dd74bddec6ee5d71cb170ec5b6a 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a43d9683a8893b7407b96cf32d1660dbb8d22948
+Subproject commit 240d0e0408cb6dd74bddec6ee5d71cb170ec5b6a
index a52d511c3ae5d6858a65ac3739ecffb90d82ec35..4585347781c68c520742b0ffbfe36a6798741a1e 100644 (file)
@@ -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");