Skip to content

Commit

Permalink
Fix IRHVAC crash v2
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored Aug 26, 2023
1 parent d4c1315 commit ab94b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 :)
Expand Down

0 comments on commit ab94b16

Please sign in to comment.