From fbe866198dc731c1fc25a33a338f4623bfbdd296 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Fri, 2 Apr 2021 16:52:53 +0200 Subject: [PATCH 1/3] Fixed iOS LED settings --- CHANGELOG.md | 7 +++++++ package.json | 2 +- wled00/data/settings_leds.htm | 10 ++++++---- wled00/html_other.h | 2 +- wled00/html_settings.h | 16 ++++++++-------- wled00/wled.h | 6 +++--- 6 files changed, 26 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f6e298137..0ba8224e3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## WLED changelog +### WLED release 0.12.0 + +#### Build 2103310 + +- Version bump to 0.12.0 "Hikari" +- Fixed LED settings submission in iOS app + ### Development versions between 0.11.1 and 0.12.0 releases #### Build 2103300 diff --git a/package.json b/package.json index 66819538c1..5b75307b27 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wled", - "version": "0.12.0-b5", + "version": "0.12.0", "description": "Tools for WLED project", "main": "tools/cdata.js", "directories": { diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index 10a73f8978..f17981e5b5 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -17,7 +17,8 @@ function bLimits(b,p,m) { maxB = b; maxM = m; maxPB = p; } - function trySubmit() { + function trySubmit(event) { + event.preventDefault(); var LCs = d.getElementsByTagName("input"); for (i=0; i 100) {var msg = "Too many LEDs for me to handle!"; if (maxM < 10000) msg += " Consider using an ESP32."; alert(msg); return;} + if (d.Sf.checkValidity()) d.Sf.submit(); //https://stackoverflow.com/q/37323914 if (d.Sf.reportValidity()) d.Sf.submit(); } function S(){GetV();setABL();} @@ -255,9 +257,9 @@ -
+
-
+

LED & Hardware setup

Total LED count:
Recommended power supply for brightest white:
@@ -344,7 +346,7 @@

Advanced



- +
diff --git a/wled00/html_other.h b/wled00/html_other.h index 2c515a1a30..802e59e473 100644 --- a/wled00/html_other.h +++ b/wled00/html_other.h @@ -42,7 +42,7 @@ function B(){window.history.back()}function U(){document.getElementById("uf").st .bt{background:#333;color:#fff;font-family:Verdana,sans-serif;border:.3ch solid #333;display:inline-block;font-size:20px;margin:8px;margin-top:12px}input[type=file]{font-size:16px}body{font-family:Verdana,sans-serif;text-align:center;background:#222;color:#fff;line-height:200%}#msg{display:none}

WLED Software Update

-Installed version: 0.12.0-b5
Download the latest binary: Download the latest binary:

diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 810d889df6..11341d27bd 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -72,13 +72,13 @@ Do not enable if WiFi is working correctly, increases power consumption.
LED Settings