Update feature list

This commit is contained in:
Theo Arends 2023-11-09 15:32:43 +01:00
parent c6ca0ff10f
commit 211da12342
2 changed files with 14 additions and 6 deletions

View File

@ -19,6 +19,8 @@
/*********************************************************************************************\ /*********************************************************************************************\
* Feature list * Feature list
*
* Note: When extending/updating feature[] also extend/update a_features in decode-status.py
\*********************************************************************************************/ \*********************************************************************************************/
constexpr uint32_t feature[] = { constexpr uint32_t feature[] = {
@ -885,9 +887,15 @@ constexpr uint32_t feature[] = {
#ifdef USE_HC8 #ifdef USE_HC8
0x10000000 | // xsns_113_hc8.ino 0x10000000 | // xsns_113_hc8.ino
#endif #endif
// 0x20000000 | // #ifdef USE_HDMI_CEC
// 0x40000000 | // 0x20000000 | // xdrv_70_0_hdmi_cec.ino
// 0x80000000 | // #endif
#ifdef USE_BLE_ESP32
0x40000000 | // xdrv_79_esp32_ble.ino
#endif
#ifdef USE_MATTER_DEVICE
0x80000000 | // xdrv_52_9_berry.ino
#endif
0, 0,
// 0x00000001 | // // 0x00000001 | //
// 0x00000002 | // // 0x00000002 | //
@ -926,9 +934,9 @@ constexpr uint32_t feature[] = {
/*********************************************************************************************/ /*********************************************************************************************/
void ResponseAppendFeatures(void) { 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++) { 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("]")); ResponseAppend_P(PSTR("]"));
} }

View File

@ -300,7 +300,7 @@ a_features = [[
"USE_BIOPDU","USE_MCP23XXX_DRV","USE_PMSA003I","USE_LOX_O2", "USE_BIOPDU","USE_MCP23XXX_DRV","USE_PMSA003I","USE_LOX_O2",
"USE_GDK101","USE_GM861","USE_TC74","USE_PCA9557", "USE_GDK101","USE_GM861","USE_TC74","USE_PCA9557",
"USE_SGP4X","USE_MAX17043","USE_ENS16x","USE_ENS210", "USE_SGP4X","USE_MAX17043","USE_ENS16x","USE_ENS210",
"USE_HC8","","","" "USE_HC8","USE_HDMI_CEC","USE_BLE_ESP32","USE_MATTER_DEVICE"
],[ ],[
"","","","", "","","","",
"","","","", "","","","",