From 211da123425173b3790f4e7ee2bc1d9587c99ebd Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:32:43 +0100 Subject: [PATCH] Update feature list --- tasmota/tasmota_support/support_features.ino | 18 +++++++++++++----- tools/decode-status.py | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/tasmota/tasmota_support/support_features.ino b/tasmota/tasmota_support/support_features.ino index a9d71abbe..5c0e4e03b 100644 --- a/tasmota/tasmota_support/support_features.ino +++ b/tasmota/tasmota_support/support_features.ino @@ -19,6 +19,8 @@ /*********************************************************************************************\ * Feature list + * + * Note: When extending/updating feature[] also extend/update a_features in decode-status.py \*********************************************************************************************/ constexpr uint32_t feature[] = { @@ -885,9 +887,15 @@ constexpr uint32_t feature[] = { #ifdef USE_HC8 0x10000000 | // xsns_113_hc8.ino #endif -// 0x20000000 | // -// 0x40000000 | // -// 0x80000000 | // +#ifdef USE_HDMI_CEC + 0x20000000 | // xdrv_70_0_hdmi_cec.ino +#endif +#ifdef USE_BLE_ESP32 + 0x40000000 | // xdrv_79_esp32_ble.ino +#endif +#ifdef USE_MATTER_DEVICE + 0x80000000 | // xdrv_52_9_berry.ino +#endif 0, // 0x00000001 | // // 0x00000002 | // @@ -926,9 +934,9 @@ constexpr uint32_t feature[] = { /*********************************************************************************************/ void ResponseAppendFeatures(void) { - ResponseAppend_P(PSTR(",\"" D_JSON_FEATURES "\":[\"%08X\""), LANGUAGE_LCID); + ResponseAppend_P(PSTR(",\"" D_JSON_FEATURES "\":[\"%04X\""), LANGUAGE_LCID); // Locale ID for (uint32_t i = 0; i < (sizeof(feature) / sizeof(uint32_t)); i++) { - ResponseAppend_P(PSTR(",\"%08X\""), feature[i]); + ResponseAppend_P(PSTR(",\"%08X\""), feature[i]); // Tasmota feature list } ResponseAppend_P(PSTR("]")); } diff --git a/tools/decode-status.py b/tools/decode-status.py index 116ca97d8..3b8af81b4 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -300,7 +300,7 @@ a_features = [[ "USE_BIOPDU","USE_MCP23XXX_DRV","USE_PMSA003I","USE_LOX_O2", "USE_GDK101","USE_GM861","USE_TC74","USE_PCA9557", "USE_SGP4X","USE_MAX17043","USE_ENS16x","USE_ENS210", - "USE_HC8","","","" + "USE_HC8","USE_HDMI_CEC","USE_BLE_ESP32","USE_MATTER_DEVICE" ],[ "","","","", "","","","",