Webserver * Increased buffer size for HTML generation in /effects.
This commit is contained in:
parent
47812de405
commit
79c13e760f
@ -201,9 +201,9 @@ void http_server_setup() {
|
|||||||
});
|
});
|
||||||
http_server.on("/effects", HTTP_GET, [&](AsyncWebServerRequest* request) {
|
http_server.on("/effects", HTTP_GET, [&](AsyncWebServerRequest* request) {
|
||||||
String message = F("<html><head><title>Pitrix effects</title></head><body><h1>Pitrix settings</h1><a href='/'>Back to main page</a><table>");
|
String message = F("<html><head><title>Pitrix effects</title></head><body><h1>Pitrix settings</h1><a href='/'>Back to main page</a><table>");
|
||||||
char buffer[150];
|
char buffer[500];
|
||||||
for (int i=0; i<effects_size; i++) {
|
for (int i=0; i<effects_size; i++) {
|
||||||
snprintf_P(buffer, 150, PSTR("<tr><td>%s</td><td><form method='post' action='/effects'><input type='hidden' name='name' value='%s'><input type='hidden' name='redir' value='1'><input type='submit' value='Select'></form></td></tr>"), effects[i].name, effects[i].name);
|
snprintf_P(buffer, 500, PSTR("<tr><td>%s</td><td><form method='post' action='/effects'><input type='hidden' name='name' value='%s'><input type='hidden' name='redir' value='1'><input type='submit' value='Select'></form></td></tr>"), effects[i].name, effects[i].name);
|
||||||
message += buffer;
|
message += buffer;
|
||||||
}
|
}
|
||||||
message += F("</table></body></html>");
|
message += F("</table></body></html>");
|
||||||
|
Loading…
Reference in New Issue
Block a user