Skip to content

Commit

Permalink
Fixed preset cycle default duration rounded down to nearest 10sec int…
Browse files Browse the repository at this point in the history
…erval (fixes Aircoookie#1458)

Enabled E1.31/DDP/Art-Net in AP mode
  • Loading branch information
Aircoookie committed Dec 10, 2020
1 parent aefd812 commit b523288
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,11 @@

### Development versions after 0.11.0 release

#### Build 2012101

- Fixed preset cycle default duration rounded down to nearest 10sec interval (#1458)
- Enabled E1.31/DDP/Art-Net in AP mode

#### Build 2012100

- Fixed multi-segment preset cycle
4 changes: 2 additions & 2 deletions wled00/cfg.cpp
Original file line number Diff line number Diff line change
@@ -162,7 +162,7 @@ void deserializeConfig() {
CJSON(presetCycleMax, def_cy[F("range")][1]);

tdd = def_cy[F("dur")] | -1;
if (tdd >= 0) presetCycleTime = tdd * 100;
if (tdd > 0) presetCycleTime = tdd;

JsonObject interfaces = doc["if"];

@@ -482,7 +482,7 @@ void serializeConfig() {
JsonArray def_cy_range = def_cy.createNestedArray("range");
def_cy_range.add(presetCycleMin);
def_cy_range.add(presetCycleMax);
def_cy[F("dur")] = presetCycleTime / 100;
def_cy[F("dur")] = presetCycleTime;
}

JsonObject interfaces = doc.createNestedObject("if");
1 change: 1 addition & 0 deletions wled00/wled.cpp
Original file line number Diff line number Diff line change
@@ -377,6 +377,7 @@ void WLED::initAP(bool resetAP)
if (udpPort2 > 0 && udpPort2 != ntpLocalPort && udpPort2 != udpPort && udpPort2 != udpRgbPort) {
udp2Connected = notifier2Udp.begin(udpPort2);
}
e131.begin(false, e131Port, e131Universe, E131_MAX_UNIVERSE_COUNT);

dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
dnsServer.start(53, "*", WiFi.softAPIP());
2 changes: 1 addition & 1 deletion wled00/wled.h
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
*/

// version code in format yymmddb (b = daily build)
#define VERSION 2012100
#define VERSION 2012101

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

0 comments on commit b523288

Please sign in to comment.