From ab94b16d8dfb692820f317d5431cb661812ba3e9 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:04:08 +0200 Subject: [PATCH] Fix IRHVAC crash v2 --- tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino b/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino index 55eb8e965..0c228a3ee 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino @@ -227,7 +227,7 @@ namespace { void addFloatToJson(JsonGeneratorObject& json, const char* key, float value, float noValueConstant = NAN) { if (!isnan(noValueConstant) && value == noValueConstant) { //The "no sensor value" may not be straightforward (e.g.-100.0), hence replacing with explicit n/a - json.addStrRaw(key, PSTR(D_JSON_NULL)); + json.addStrRaw(key, D_JSON_NULL); return; } char s[6]; // Range: -99.9 <> 999.9 should be fine for any sensible temperature value :)