i2cdriverstate in status only when use_i2c (#18067)

This commit is contained in:
Barbudor 2023-02-27 15:39:52 +01:00 committed by GitHub
parent a97f0349d8
commit 635afa36de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -794,8 +794,10 @@ void CmndStatus(void)
XsnsDriverState();
ResponseAppend_P(PSTR(",\"Sensors\":"));
XsnsSensorState(0);
#ifdef USE_I2C
ResponseAppend_P(PSTR(",\"" D_CMND_I2CDRIVER "\":"));
I2cDriverState();
#endif
ResponseJsonEndEnd();
CmndStatusResponse(4);
}