mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Merge pull request #17296 from barbudor/patch-1
Fix HMC5883 sensor json
This commit is contained in:
commit
9cce6ad0eb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user