mirror of https://github.com/arendst/Tasmota.git
Update xdrv_12_discovery.ino
This commit is contained in:
parent
c6f51b8ca3
commit
baf68fcf6e
|
@ -256,6 +256,13 @@ void TasDiscoverInit(void) {
|
|||
}
|
||||
}
|
||||
|
||||
/*********************************************************************************************\
|
||||
* Stubs replacing legacy Hass discovery
|
||||
\*********************************************************************************************/
|
||||
|
||||
void HAssPublishStatus(void) { return; }
|
||||
void HAssDiscover(void) { TasRediscover(); }
|
||||
|
||||
/*********************************************************************************************\
|
||||
* Commands
|
||||
*
|
||||
|
@ -281,7 +288,7 @@ void (* const TasDiscoverCommand[])(void) PROGMEM = {
|
|||
|
||||
void CmndTasDiscover(void) {
|
||||
if (XdrvMailbox.payload >= 0) {
|
||||
Settings->flag.hass_discovery = !(XdrvMailbox.payload & 1);
|
||||
Settings->flag.hass_discovery = !(XdrvMailbox.payload & 1); // SetOption19 - Tasmota discovery (0)
|
||||
TasRediscover();
|
||||
}
|
||||
ResponseCmndChar(GetStateText(!Settings->flag.hass_discovery));
|
||||
|
|
Loading…
Reference in New Issue