mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
i2cdriverstate in status only when use_i2c (#18067)
This commit is contained in:
parent
a97f0349d8
commit
635afa36de
@ -794,8 +794,10 @@ void CmndStatus(void)
|
|||||||
XsnsDriverState();
|
XsnsDriverState();
|
||||||
ResponseAppend_P(PSTR(",\"Sensors\":"));
|
ResponseAppend_P(PSTR(",\"Sensors\":"));
|
||||||
XsnsSensorState(0);
|
XsnsSensorState(0);
|
||||||
|
#ifdef USE_I2C
|
||||||
ResponseAppend_P(PSTR(",\"" D_CMND_I2CDRIVER "\":"));
|
ResponseAppend_P(PSTR(",\"" D_CMND_I2CDRIVER "\":"));
|
||||||
I2cDriverState();
|
I2cDriverState();
|
||||||
|
#endif
|
||||||
ResponseJsonEndEnd();
|
ResponseJsonEndEnd();
|
||||||
CmndStatusResponse(4);
|
CmndStatusResponse(4);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user