diff --git a/src/Globals.cpp b/src/Globals.cpp index 560053b7..e3945db3 100644 --- a/src/Globals.cpp +++ b/src/Globals.cpp @@ -302,7 +302,7 @@ IPAddress gateway; IPAddress subnet; IPAddress primaryDNS; IPAddress secondaryDNS; -const char *VERSION = "0.89"; +const char *VERSION = "0.90"; String MQTT_HOST = ""; uint16_t MQTT_PORT = 1883; @@ -404,7 +404,7 @@ bool MOODLIGHT_MODE; long STATS_INTERVAL = 10000; bool DEBUG_MODE = false; uint8_t MIN_BRIGHTNESS = 2; -uint8_t MAX_BRIGHTNESS = 210; +uint8_t MAX_BRIGHTNESS = 160; double movementFactor = 0.5; int8_t TRANS_EFFECT = 1; String AUTH_USER = ""; diff --git a/src/MatrixDisplayUi.cpp b/src/MatrixDisplayUi.cpp index 995d6085..6bba5d6f 100644 --- a/src/MatrixDisplayUi.cpp +++ b/src/MatrixDisplayUi.cpp @@ -625,7 +625,7 @@ void MatrixDisplayUi::curtainTransition() float progress = (float)this->state.ticksSinceLastStateSwitch / (float)this->ticksPerTransition; int curtainWidth = (int)(16 * progress); // 16 ist die Hälfte der Matrix-Breite - if (this->state.ticksSinceLastStateSwitch == 1) + if (this->state.ticksSinceLastStateSwitch == 1 || this->state.ticksSinceLastStateSwitch == 0) { // Kopieren Sie die aktuelle App-Ansicht in ledsCopy (this->AppFunctions[this->state.currentApp])(this->matrix, &this->state, 0, 0, &gif1); diff --git a/src/ServerManager.cpp b/src/ServerManager.cpp index fce3ed52..ce2abc9e 100644 --- a/src/ServerManager.cpp +++ b/src/ServerManager.cpp @@ -236,7 +236,8 @@ void ServerManager_::setup() { MDNS.addService("http", "tcp", 80); MDNS.addService("awtrix", "tcp", 80); - MDNS.addServiceTxt("awtrix", "tcp", "id", MQTT_PREFIX); + MDNS.addServiceTxt("awtrix", "tcp", "id", uniqueID); + MDNS.addServiceTxt("awtrix", "tcp", "name", MQTT_PREFIX); MDNS.addServiceTxt("awtrix", "tcp", "type", "awtrix_light"); } diff --git a/src/effects.cpp b/src/effects.cpp index d8d49d9f..1ebad5af 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -1088,7 +1088,7 @@ int getEffectIndex(String name) return i; } } - return 0; + return -1; } // Loads a palette from the LittleFS filesystem @@ -1100,7 +1100,7 @@ CRGBPalette16 loadPaletteFromLittleFS(String paletteName) return RainbowColors_p; // default palette } - CRGBPalette16 palette; + CRGBPalette16 palette = RainbowColors_p; String colorString; int i = 0; while (paletteFile.available() && i < 16)