Update xml.cpp
This commit is contained in:
@@ -792,6 +792,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
|
|||||||
if (subPage == 8) //usermods
|
if (subPage == 8) //usermods
|
||||||
{
|
{
|
||||||
appendGPIOinfo();
|
appendGPIOinfo();
|
||||||
|
oappendUseDeflate(true); // allow replacing long functions with shorter equivalents - only works for usermods
|
||||||
if (!request->hasParam("um") ) {
|
if (!request->hasParam("um") ) {
|
||||||
// oappend(SET_F("numM="));
|
// oappend(SET_F("numM="));
|
||||||
// oappendi(usermods.getModCount());
|
// oappendi(usermods.getModCount());
|
||||||
@@ -834,6 +835,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
|
|||||||
Usermod *usermod = usermods.lookupName(request->getParam("um")->value().c_str());
|
Usermod *usermod = usermods.lookupName(request->getParam("um")->value().c_str());
|
||||||
if (usermod) usermod->appendConfigData();
|
if (usermod) usermod->appendConfigData();
|
||||||
}
|
}
|
||||||
|
oappendUseDeflate(false);
|
||||||
|
|
||||||
// oappend(SET_F("console.log('getSettingsJS fix ro pins', d.max_gpio, d.ro_gpio);"));
|
// oappend(SET_F("console.log('getSettingsJS fix ro pins', d.max_gpio, d.ro_gpio);"));
|
||||||
oappend(SET_F("pinPost();"));
|
oappend(SET_F("pinPost();"));
|
||||||
|
|||||||
Reference in New Issue
Block a user