Prepare feature additions

This commit is contained in:
Theo Arends 2021-01-22 17:15:58 +01:00
parent 9d83bcae4e
commit 6108076eec
2 changed files with 54 additions and 3 deletions

View File

@ -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);
}

View File

@ -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"