From a3892ecbc40fd3cbba47d68c6dbb20aa2fcc234c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:13:14 +0200 Subject: [PATCH] Update change logs --- CHANGELOG.md | 2 +- RELEASENOTES.md | 1 + tasmota/tasmota_support/support_command.ino | 17 ++++++++--------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1926a093..9214991b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ All notable changes to this project will be documented in this file. - Zigbee flashing CC2562P with latest firmware (#22117) - SML trx pin error (#22119) - Shutter remaining issues on shutterinvert (#22120) -- Berry I2C to prepare M5Stack I2C STM32 based devices +- Berry I2C to prepare M5Stack I2C STM32 based devices (#22143) ### Removed diff --git a/RELEASENOTES.md b/RELEASENOTES.md index dbaa834a7..c121e70d4 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -162,6 +162,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm - Zigbee flashing CC2562P with latest firmware [#22117](https://github.com/arendst/Tasmota/issues/22117) - Berry avoid `readbytes()` from crashing when file is too large [#22057](https://github.com/arendst/Tasmota/issues/22057) - Berry energy missing attributes [#22116](https://github.com/arendst/Tasmota/issues/22116) +- Berry I2C to prepare M5Stack I2C STM32 based devices [#22143](https://github.com/arendst/Tasmota/issues/22143) - LVGL Added OpenHASP icons to font `montserrat-28` [#22048](https://github.com/arendst/Tasmota/issues/22048) - Matter fixed UI bug when no endpoints configured [#22008](https://github.com/arendst/Tasmota/issues/22008) - Matter fix when Rules are disabled [#22016](https://github.com/arendst/Tasmota/issues/22016) diff --git a/tasmota/tasmota_support/support_command.ino b/tasmota/tasmota_support/support_command.ino index f84eab6c8..92b612223 100644 --- a/tasmota/tasmota_support/support_command.ino +++ b/tasmota/tasmota_support/support_command.ino @@ -2743,21 +2743,20 @@ void CmndBatteryPercent(void) { #ifdef USE_I2C void CmndI2cScan(void) { - // I2CScan0 - Scan bus1 and bus2 - // I2CScan - Scan bus1 - // I2CScan2 - Scan bus2 + // I2CScan - Scan bus1 then bus2 + bool jsflag = false; if (TasmotaGlobal.i2c_enabled) { - if ((0 == XdrvMailbox.index) || (1 == XdrvMailbox.index)) { - I2cScan(); - } + I2cScan(); + jsflag = true; } #ifdef ESP32 if (TasmotaGlobal.i2c_enabled_2) { - if ((0 == XdrvMailbox.index) || (2 == XdrvMailbox.index)) { - I2cScan(1); + if (jsflag) { + MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_STAT, XdrvMailbox.command); } + I2cScan(1); } -#endif +#endif // ESP32 } void CmndI2cDriver(void)