TuyaMCU update2

oops
This commit is contained in:
Federico Leoni 2020-09-16 16:59:10 -03:00
parent e45a5f3323
commit 0bca9a2028
1 changed files with 25 additions and 28 deletions

View File

@ -1460,6 +1460,11 @@ void HandleRoot(void)
(set_button) ? SettingsText(SET_BUTTON1 + idx -1) : (devices_present < 5) ? D_BUTTON_TOGGLE : "", (set_button) ? SettingsText(SET_BUTTON1 + idx -1) : (devices_present < 5) ? D_BUTTON_TOGGLE : "",
(set_button) ? "" : (devices_present > 1) ? stemp : ""); (set_button) ? "" : (devices_present > 1) ? stemp : "");
} }
#ifdef USE_SONOFF_IFAN
}
#endif // USE_SONOFF_IFAN
WSContentSend_P(PSTR("</tr></table>"));
}
#ifdef USE_TUYA_MCU #ifdef USE_TUYA_MCU
if (IsModuleTuya()) { if (IsModuleTuya()) {
uint8_t modeset = 0; uint8_t modeset = 0;
@ -1483,16 +1488,8 @@ void HandleRoot(void)
} }
WSContentSend_P(PSTR("</tr></table>")); WSContentSend_P(PSTR("</tr></table>"));
} }
} else { }
#endif // USE_TUYA_MCU #endif // USE_TUYA_MCU
}
WSContentSend_P(PSTR("</tr></table>"));
#ifdef USE_SONOFF_IFAN
}
#endif // USE_SONOFF_IFAN
WSContentSend_P(PSTR("</tr></table>"));
}
#ifdef USE_SONOFF_RF #ifdef USE_SONOFF_RF
if (SONOFF_BRIDGE == my_module_type) { if (SONOFF_BRIDGE == my_module_type) {
WSContentSend_P(HTTP_TABLE100); WSContentSend_P(HTTP_TABLE100);