From 635afa36ded8378e217a298414a771b062d7b53b Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 27 Feb 2023 15:39:52 +0100 Subject: [PATCH] i2cdriverstate in status only when use_i2c (#18067) --- tasmota/tasmota_support/support_command.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_support/support_command.ino b/tasmota/tasmota_support/support_command.ino index 2186f9311..8215ab71c 100644 --- a/tasmota/tasmota_support/support_command.ino +++ b/tasmota/tasmota_support/support_command.ino @@ -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); }