Skip to content

Commit 6c315e5

Browse files
committed
0.13.1
Fix persistent preset bug
1 parent ef0f91d commit 6c315e5

File tree

9 files changed

+16
-9
lines changed

9 files changed

+16
-9
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ body:
4545
attributes:
4646
label: What version of WLED?
4747
description: You can find this in by going to Config -> Security & Updates -> Scroll to Bottom. Copy and paste the entire line after "Server message"
48-
placeholder: "e.g. WLED 0.13.0-b7 (build 2202222)"
48+
placeholder: "e.g. WLED 0.13.1 (build 2203150)"
4949
validations:
5050
required: true
5151
- type: dropdown

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## WLED changelog
22

3+
### WLED release 0.13.1
4+
5+
#### Build 2203150
6+
7+
- Version bump to v0.13.1 "Toki"
8+
- Fix persistent preset bug, preventing save of new presets
9+
310
### WLED release 0.13.0
411

512
#### Build 2203142

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.13.0",
3+
"version": "0.13.1",
44
"description": "Tools for WLED project",
55
"main": "tools/cdata.js",
66
"directories": {

wled00/html_other.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function B(){window.history.back()}function U(){document.getElementById("uf").st
4242
.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}
4343
</style></head><body><h2>WLED Software Update</h2><form method="POST"
4444
action="/update" id="uf" enctype="multipart/form-data" onsubmit="U()">
45-
Installed version: 0.13.0<br>Download the latest binary: <a
45+
Installed version: 0.13.1<br>Download the latest binary: <a
4646
href="https://github.com/Aircoookie/WLED/releases" target="_blank"><img
4747
src="https://img.shields.io/github/release/Aircoookie/WLED.svg?style=flat-square">
4848
</a><br><input type="file" class="bt" name="update" required><br><input

wled00/html_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ onclick='uploadFile(d.Sf.data2,"/cfg.json")'><br></div><div style="color:#fa0">
452452
Incorrect configuration may require a factory reset or re-flashing of your ESP.
453453
</div>For security reasons, passwords are not backed up.<h3>About</h3><a
454454
href="https://github.com/Aircoookie/WLED/" target="_blank">WLED</a>
455-
version 0.13.0<br><br><a
455+
version 0.13.1<br><br><a
456456
href="https://github.com/Aircoookie/WLED/wiki/Contributors-and-credits"
457457
target="_blank">Contributors, dependencies and special thanks</a><br>
458458
A huge thank you to everyone who helped me create WLED!<br><br>

wled00/improv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void sendImprovInfoResponse() {
189189
out[11] = 4; //Firmware len ("WLED")
190190
out[12] = 'W'; out[13] = 'L'; out[14] = 'E'; out[15] = 'D';
191191
uint8_t lengthSum = 17;
192-
uint8_t vlen = sprintf_P(out+lengthSum,PSTR("0.13.0/%i"),VERSION);
192+
uint8_t vlen = sprintf_P(out+lengthSum,PSTR("0.13.1/%i"),VERSION);
193193
out[16] = vlen; lengthSum += vlen;
194194
uint8_t hlen = 7;
195195
#ifdef ESP8266

wled00/presets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void savePreset(byte index, const char* pname, JsonObject saveobj)
5656
char tmp[12];
5757
JsonObject sObj = saveobj;
5858

59-
bool persist = (index == 255);
59+
bool persist = (index != 255);
6060
const char *filename = persist ? "/presets.json" : "/tmp.json";
6161

6262
if (!fileDoc) {

wled00/wled.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
/*
44
Main sketch, global variable declarations
55
@title WLED project sketch
6-
@version 0.13.0
6+
@version 0.13.1
77
@author Christian Schwinne
88
*/
99

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

1313
//uncomment this if you have a "my_config.h" file you'd like to use
1414
//#define WLED_USE_MY_CONFIG

0 commit comments

Comments
 (0)