Skip to content

Commit c596b5a

Browse files
committed
Bugfix
1 parent 84dd26c commit c596b5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wled00/xml.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,7 @@ void getSettingsJS(byte subPage, Print& settingsScript)
660660
printSetFormValue(settingsScript,PSTR("MPC"),strip.panels);
661661
// panels
662662
for (unsigned i=0; i<strip.panels; i++) {
663-
char n[5];
664-
settingsScript.printf_P(PSTR("addPanel(%d);"), itoa(i,n,10));
663+
settingsScript.printf_P(PSTR("addPanel(%d);"), i);
665664
char pO[8] = { '\0' };
666665
snprintf_P(pO, 7, PSTR("P%d"), i); // WLED_MAX_PANELS is 18 so pO will always only be 4 characters or less
667666
pO[7] = '\0';

0 commit comments

Comments
 (0)