Skip to content

Commit

Permalink
Merge branch 'xml-bugfix' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Nov 17, 2024
2 parents f51bc9d + c596b5a commit 7710113
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wled00/xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,7 @@ void getSettingsJS(byte subPage, Print& settingsScript)
printSetFormValue(settingsScript,PSTR("MPC"),strip.panels);
// panels
for (unsigned i=0; i<strip.panels; i++) {
char n[5];
settingsScript.printf_P(PSTR("addPanel(%d);"), itoa(i,n,10));
settingsScript.printf_P(PSTR("addPanel(%d);"), i);
char pO[8] = { '\0' };
snprintf_P(pO, 7, PSTR("P%d"), i); // WLED_MAX_PANELS is 18 so pO will always only be 4 characters or less
pO[7] = '\0';
Expand Down

0 comments on commit 7710113

Please sign in to comment.