mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix compilation when no emulation is selected
Fix compilation when no emulation is selected (#7790)
This commit is contained in:
parent
9ba777f3d1
commit
0475289532
@ -2824,6 +2824,7 @@ void (* const WebCommand[])(void) PROGMEM = {
|
||||
#ifdef USE_EMULATION
|
||||
void CmndEmulation(void)
|
||||
{
|
||||
#if defined(USE_EMULATION_WEMO) || defined(USE_EMULATION_HUE)
|
||||
#if defined(USE_EMULATION_WEMO) && defined(USE_EMULATION_HUE)
|
||||
if ((XdrvMailbox.payload >= EMUL_NONE) && (XdrvMailbox.payload < EMUL_MAX)) {
|
||||
#else
|
||||
@ -2837,6 +2838,7 @@ void CmndEmulation(void)
|
||||
Settings.flag2.emulation = XdrvMailbox.payload;
|
||||
restart_flag = 2;
|
||||
}
|
||||
#endif
|
||||
ResponseCmndNumber(Settings.flag2.emulation);
|
||||
}
|
||||
#endif // USE_EMULATION
|
||||
|
Loading…
x
Reference in New Issue
Block a user