mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
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
|
* Commands
|
||||||
*
|
*
|
||||||
@ -281,7 +288,7 @@ void (* const TasDiscoverCommand[])(void) PROGMEM = {
|
|||||||
|
|
||||||
void CmndTasDiscover(void) {
|
void CmndTasDiscover(void) {
|
||||||
if (XdrvMailbox.payload >= 0) {
|
if (XdrvMailbox.payload >= 0) {
|
||||||
Settings->flag.hass_discovery = !(XdrvMailbox.payload & 1);
|
Settings->flag.hass_discovery = !(XdrvMailbox.payload & 1); // SetOption19 - Tasmota discovery (0)
|
||||||
TasRediscover();
|
TasRediscover();
|
||||||
}
|
}
|
||||||
ResponseCmndChar(GetStateText(!Settings->flag.hass_discovery));
|
ResponseCmndChar(GetStateText(!Settings->flag.hass_discovery));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user