From 513d6239b30a8ccf8912f52cfee39680ea458093 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Tue, 6 Dec 2022 20:07:18 +0100 Subject: [PATCH] Fix HMC5883 sensor json Fix https://github.com/arendst/Tasmota/issues/17295 --- tasmota/tasmota_xsns_sensor/xsns_101_hmc5883l.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_101_hmc5883l.ino b/tasmota/tasmota_xsns_sensor/xsns_101_hmc5883l.ino index a800a8998..d75a54773 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_101_hmc5883l.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_101_hmc5883l.ino @@ -173,7 +173,7 @@ const char HTTP_SNS_HMC5883L[] PROGMEM = void HMC5883L_Show(uint8_t json) { if (json) { - ResponseAppend_P(PSTR(",\"HMC5883L\":{\"" D_JSON_MX "\":%d,\"" D_JSON_MY "\":%d,\"" D_JSON_MZ "\":%d,\"" D_JSON_MAGNETICFLD "\":%u,\""), + ResponseAppend_P(PSTR(",\"HMC5883L\":{\"" D_JSON_MX "\":%d,\"" D_JSON_MY "\":%d,\"" D_JSON_MZ "\":%d,\"" D_JSON_MAGNETICFLD "\":%u"), HMC5883L->MX, HMC5883L->MY, HMC5883L->MZ, HMC5883L->magnitude); #ifdef USE_WEBSERVER } else {