mirror of https://github.com/arendst/Tasmota.git
Reserve `SetOption151` for Matter protocol (#17860)
This commit is contained in:
parent
2c9f1fef0d
commit
96b66225d2
|
@ -184,7 +184,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu
|
|||
uint32_t artnet_autorun : 1; // bit 2 (v12.2.0.4) - SetOption148 - (Light) start DMX ArtNet at boot, listen to UDP port as soon as network is up
|
||||
uint32_t dns_ipv6_priority : 1; // bit 3 (v12.2.0.6) - SetOption149 - (Wifi) prefer IPv6 DNS resolution to IPv4 address when available. Requires `#define USE_IPV6`
|
||||
uint32_t no_voltage_common : 1; // bit 4 (v12.3.1.5) - SetOption150 - (Energy) Force no voltage/frequency common
|
||||
uint32_t spare05 : 1; // bit 5
|
||||
uint32_t matter_enabled : 1; // bit 5 (v12.3.1.5) - SetOption151 - (Matter) Enable Matter protocol over Wifi
|
||||
uint32_t spare06 : 1; // bit 6
|
||||
uint32_t spare07 : 1; // bit 7
|
||||
uint32_t spare08 : 1; // bit 8
|
||||
|
|
|
@ -1449,6 +1449,11 @@ void CmndSetoptionBase(bool indexed) {
|
|||
}
|
||||
else if (6 == ptype) { // SetOption146 .. 177
|
||||
bitWrite(Settings->flag6.data, pindex, XdrvMailbox.payload);
|
||||
switch (pindex) {
|
||||
case 5: // SetOption151 - Matter enabled
|
||||
TasmotaGlobal.restart_flag = 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ptype = 99; // Command Error
|
||||
|
|
Loading…
Reference in New Issue