From 8cfd0df71037d9a073a9a856edb4edd3ffdbffcb Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 1 Jul 2024 22:54:51 +0200 Subject: [PATCH] Update xml.cpp --- wled00/xml.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 72fdf219..efc5840c 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -792,6 +792,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W if (subPage == 8) //usermods { appendGPIOinfo(); + oappendUseDeflate(true); // allow replacing long functions with shorter equivalents - only works for usermods if (!request->hasParam("um") ) { // oappend(SET_F("numM=")); // 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()); if (usermod) usermod->appendConfigData(); } + oappendUseDeflate(false); // oappend(SET_F("console.log('getSettingsJS fix ro pins', d.max_gpio, d.ro_gpio);")); oappend(SET_F("pinPost();"));