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 :)