From 0ee5a459f706bf2b2c98e8af74c6b8ba7d30d214 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 10 Oct 2025 01:13:22 -0400 Subject: [PATCH] . --- ESP32-IDF_Temperture-Node-v2/main/mqttronix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c b/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c index b25c2ac94..227ae8023 100644 --- a/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c +++ b/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c @@ -139,13 +139,13 @@ void mqttronix_start(void) { void mqttronix_update_temp (float temp) { temp_value = temp; - snprintf(temp_str, sizeof(temp_str), "%.02f", temp_value); + snprintf(temp_str, sizeof(temp_str), "%.02f", temp); } void mqttronix_update_humidity (float humidity) { humidity_value = humidity; - snprintf(humidity_str, sizeof(humidity_str), "%.02f", humidity_value); + snprintf(humidity_str, sizeof(humidity_str), "%.02f", humidity); } void mqttronix_update_pressure (float pressure) { pressure_value = pressure; - snprintf(pressure_str, sizeof(pressure_str), "%.02f", pressure_value); + snprintf(pressure_str, sizeof(pressure_str), "%.02f", pressure); } \ No newline at end of file