From 70aa01b2613d9f2b3dbe5e8265d15f39aeff50e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Sun, 28 Nov 2021 11:24:58 +0100 Subject: [PATCH] Bugfix to allow more than 10 buttons. --- wled00/data/settings_leds.htm | 4 ++-- wled00/html_settings.h | 2 +- wled00/set.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index 3e34dd07..c5eac450 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -350,8 +350,8 @@ ${i+1}: } function addBtn(i,p,t) { var c = gId("btns").innerHTML; - var bt = "BT" + i; - var be = "BE" + i; + var bt = "BT" + String.fromCharCode((i<10?48:55)+i); + var be = "BE" + String.fromCharCode((i<10?48:55)+i); c += `Button ${i} GPIO: `; c += `