From 3161f5fa47126fcb44ffb9a135b795bc753e9e11 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 9 Nov 2021 17:46:05 +0100 Subject: [PATCH] Fix for network 'pin' conflicts. --- wled00/data/settings_leds.htm | 2 +- wled00/html_settings.h | 49 +++++++++++++++++------------------ 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index 187fd289..f337e71e 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -55,7 +55,7 @@ if (n2.substring(0,1)==="L") { var m = LCs[j].name.substring(2); var t2 = parseInt(d.getElementsByName("LT"+m)[0].value, 10); - if (t2<16) continue; + if (t2>=80) continue; } if (LCs[j].value!="" && LCs[i].value==LCs[j].value) {alert(`Pin conflict between ${LCs[i].name}/${LCs[j].name}!`);LCs[j].value="";LCs[j].focus();return false;} } diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 90e3fb54..b6007b13 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -77,7 +77,7 @@ onclick="B()">Back // Autogenerated from wled00/data/settings_leds.htm, do not edit!! const char PAGE_settings_leds[] PROGMEM = R"=====(LED Settings