Merge pull request #17296 from barbudor/patch-1

Fix HMC5883 sensor json
This commit is contained in:
Theo Arends 2022-12-06 20:54:36 +01:00 committed by GitHub
commit 9cce6ad0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ const char HTTP_SNS_HMC5883L[] PROGMEM =
void HMC5883L_Show(uint8_t json) { void HMC5883L_Show(uint8_t json) {
if (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); HMC5883L->MX, HMC5883L->MY, HMC5883L->MZ, HMC5883L->magnitude);
#ifdef USE_WEBSERVER #ifdef USE_WEBSERVER
} else { } else {