Skip to content

Commit 5236625

Browse files
committed
A few small fixes
1 parent f36073f commit 5236625

File tree

10 files changed

+1568
-1562
lines changed

10 files changed

+1568
-1562
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
### Development versions after the 0.10.2 release
44

5+
#### Build 2011153
6+
7+
- Fixed an ESP32 end-of-file issue
8+
- Fixed useRGBW not read from cfg.json
9+
510
#### Build 2011152
611

712
- Version bump to 0.11.0p "Mirai"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wled",
3-
"version": "0.10.2",
3+
"version": "0.11.0p",
44
"description": "Tools for WLED project",
55
"main": "tools/cdata.js",
66
"directories": {

wled00/cfg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void deserializeConfig() {
102102
strip.colorOrder = hw_led_ins_0[F("order")];
103103
//bool hw_led_ins_0_rev = hw_led_ins_0[F("rev")]; // false
104104
skipFirstLed = hw_led_ins_0[F("skip")]; // 0
105-
//int hw_led_ins_0_type = hw_led_ins_0[F("type")]; // 2*/
105+
useRGBW = (hw_led_ins_0[F("type")] == TYPE_SK6812_RGBW);
106106

107107
JsonObject hw_btn_ins_0 = hw[F("btn")][F("ins")][0];
108108
buttonEnabled = hw_btn_ins_0[F("en")] | buttonEnabled;

wled00/data/index.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@
838838
border-radius: 20px;
839839
text-align: left;
840840
transition: background-color 0.5s;
841+
filter: brightness(1);
841842
}
842843

843844
.pres {

wled00/file.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ bool appendObjectToFile(const char* key, JsonDocument* content, uint32_t s, uint
221221
}
222222

223223
//check if last character in file is '}' (typical)
224-
f.seek(1, SeekEnd);
225-
if (f.read() == '}') pos = f.size() -1;
224+
uint32_t eof = f.size() -1;
225+
f.seek(eof, SeekSet);
226+
if (f.read() == '}') pos = eof;
226227

227228
if (pos == 0) //not found
228229
{

wled00/html_other.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const char PAGE_update[] PROGMEM = R"=====(<!DOCTYPE html><html><head><meta cont
3939
<title>WLED Update</title><script>function B(){window.history.back()}</script>
4040
<style>
4141
.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%}
42-
</style></head><body><h2>WLED Software Update</h2>Installed version: 0.10.2<br>
42+
</style></head><body><h2>WLED Software Update</h2>Installed version: 0.11.0p<br>
4343
Download the latest binary: <a
4444
href="https://github.com/Aircoookie/WLED/releases" target="_blank"><img
4545
src="https://img.shields.io/github/release/Aircoookie/WLED.svg?style=flat-square">

wled00/html_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ HTTP traffic is unencrypted. An attacker in the same network can intercept form
356356
<h3>Software Update</h3><button type="button" onclick="U()">Manual OTA Update
357357
</button><br>Enable ArduinoOTA: <input type="checkbox" name="AO"><br><h3>About
358358
</h3><a href="https://github.com/Aircoookie/WLED/" target="_blank">WLED</a>
359-
version 0.10.2<br><br><a
359+
version 0.11.0p<br><br><a
360360
href="https://github.com/Aircoookie/WLED/wiki/Contributors-&-About"
361361
target="_blank">Contributors, dependencies and special thanks</a><br>
362362
A huge thank you to everyone who helped me create WLED!<br><br>

wled00/html_ui.h

Lines changed: 1553 additions & 1553 deletions
Large diffs are not rendered by default.

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// version code in format yymmddb (b = daily build)
11-
#define VERSION 2011152
11+
#define VERSION 2011153
1212

1313
// ESP8266-01 (blue) got too little storage space to work with WLED. 0.10.2 is the last release supporting this unit.
1414

wled00/wled_eeprom.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ void deEEP() {
383383

384384
JsonObject pObj = sObj.createNestedObject(nbuf);
385385

386-
pObj["q"] = nbuf;
387-
sprintf_P(nbuf, "Preset %d", index);
386+
sprintf_P(nbuf, (char*)F("Preset %d"), index);
388387
pObj["n"] = nbuf;
389388

390389
pObj["bri"] = EEPROM.read(i+1);

0 commit comments

Comments
 (0)