From 6108076eecd06a557d565b425851626960d31e77 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 22 Jan 2021 17:15:58 +0100 Subject: [PATCH] Prepare feature additions --- tasmota/support_features.ino | 48 +++++++++++++++++++++++++++++++++--- tools/decode-status.py | 9 +++++++ 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 53e0b3398..1d17193e5 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -661,7 +661,6 @@ void ResponseAppendFeatures(void) #ifdef USE_AS608 feature7 |= 0x00000800; // xsns_79_as608.ino #endif - #if defined(USE_SHELLY_DIMMER) feature7 |= 0x00001000; // xdrv_45_shelly_dimmer.ino #endif @@ -718,8 +717,51 @@ void ResponseAppendFeatures(void) // feature7 |= 0x80000000; } + static uint32_t feature8 = 0x00000000; + if (!feature8) { // Only fill this once +// feature8 |= 0x00000001; +// feature8 |= 0x00000002; +// feature8 |= 0x00000004; +// feature8 |= 0x00000008; + +// feature8 |= 0x00000010; +// feature8 |= 0x00000020; +// feature8 |= 0x00000040; +// feature8 |= 0x00000080; + +// feature8 |= 0x00000100; +// feature8 |= 0x00000200; +// feature8 |= 0x00000400; +// feature8 |= 0x00000800; + +// feature8 |= 0x00001000; +// feature8 |= 0x00002000; +// feature8 |= 0x00004000; +// feature8 |= 0x00008000; + +// feature8 |= 0x00010000; +// feature8 |= 0x00020000; +// feature8 |= 0x00040000; +// feature8 |= 0x00080000; + +// feature8 |= 0x00100000; +// feature8 |= 0x00200000; +// feature8 |= 0x00400000; +// feature8 |= 0x00800000; + +// feature8 |= 0x01000000; +// feature8 |= 0x02000000; +// feature8 |= 0x04000000; +// feature8 |= 0x08000000; + +// feature8 |= 0x10000000; +// feature8 |= 0x20000000; +// feature8 |= 0x40000000; +// feature8 |= 0x80000000; + } + /*********************************************************************************************/ - ResponseAppend_P(PSTR(",\"" D_JSON_FEATURES "\":[\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\"]"), - LANGUAGE_LCID, feature1, feature2, feature3, feature4, feature5, feature6, feature7); + ResponseAppend_P(PSTR(",\"" D_JSON_FEATURES "\":[\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\",\"%08X\"]"), + LANGUAGE_LCID, feature1, feature2, feature3, feature4, feature5, feature6, feature7, feature8); } diff --git a/tools/decode-status.py b/tools/decode-status.py index fa56c4b9b..040ae94d4 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -246,6 +246,15 @@ a_features = [[ "USE_DISPLAY_SSD1331","USE_UFILESYS","USE_TIMEPROP","USE_PID", "USE_BS814A2","USE_SEESAW_SOIL","USE_WIEGAND","USE_NEOPOOL", "USE_TOF10120","","","" + ],[ + "","","","", + "","","","", + "","","","", + "","","","", + "","","","", + "","","","", + "","","","", + "","","","" ]] usage = "usage: decode-status {-d | -f} arg"