diff --git a/wled00/wled00.ino b/wled00/wled00.ino index 4f2646bea..af0920b1d 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -45,7 +45,7 @@ //version code in format yymmddb (b = daily build) -#define VERSION 1810031 +#define VERSION 1810041 char versionString[] = "0.8.0"; @@ -54,14 +54,14 @@ char apPass[65] = "wled1234"; char otaPass[33] = "wledota"; +//to toggle usb serial debug (un)comment following line(s) +//#define DEBUG + + //spiffs FS only useful for debug (only ESP8266) //#define USEFS -//to toggle usb serial debug (un)comment following line(s) -#define DEBUG - - //Hardware CONFIG (only changeble HERE, not at runtime) //LED strip pin changeable in NpbWrapper.h. Only change for ESP32 byte buttonPin = 0; //needs pull-up diff --git a/wled00/wled04_file.ino b/wled00/wled04_file.ino index 955a499ff..d36aaf460 100644 --- a/wled00/wled04_file.ino +++ b/wled00/wled04_file.ino @@ -7,11 +7,7 @@ void handleSerial() { if (Serial.find("Ada")) { - if (!realtimeActive){ - if (bri == 0) strip.setBrightness(briLast); - strip.setRange(0, ledCount-1, 0); - strip.setMode(0); - } + if (!realtimeActive && bri == 0) strip.setBrightness(briLast); arlsLock(realtimeTimeoutMs); delay(1); byte hi = Serial.read(); diff --git a/wled00/wled05_init.ino b/wled00/wled05_init.ino index a233b8fbd..af2646419 100644 --- a/wled00/wled05_init.ino +++ b/wled00/wled05_init.ino @@ -57,8 +57,12 @@ void wledInit() } prepareIds(); //UUID from MAC (for Alexa and MQTT) - if (mqttDeviceTopic[0] == 0) strcpy(mqttDeviceTopic, strcat("wled/", escapedMac.c_str())); - + if (mqttDeviceTopic[0] == 0) + { + strcpy(mqttDeviceTopic, "wled/"); + strcat(mqttDeviceTopic, escapedMac.c_str()); + } + //smartInit, we only init some resources when connected if (!onlyAP && WiFi.status() == WL_CONNECTED) {