Skip to content

Commit

Permalink
0.86 Hotfix
Browse files Browse the repository at this point in the history
Hotfix
- Fixes a bug where text is flickering in CustomApps with animated icons.
- Fixes a bug that awtrix hangs in a endless counting loop in special cases.
Sorry for the inconvenience

V0.85
- Sends temperature in /stats with given decimal places.
- Huge improvements in app transitions while using GIFs.
- Improves GIF decoders disposal method handling.
- Adds unique ID to stats.
  • Loading branch information
Blueforcer committed Sep 8, 2023
1 parent 772e863 commit 551540d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ String WEATHER_HUM;

struct CustomApp
{
uint32_t currentFrame;
uint32_t currentFrame = 0;
String iconName;
String iconFile;
String drawInstructions;
Expand Down Expand Up @@ -507,6 +507,7 @@ void ShowCustomApp(String name, FastLED_NeoMatrix *matrix, MatrixDisplayUiState
{
ca->isGif = isGifFlags[i];
ca->icon = LittleFS.open(filePath);
ca->currentFrame=0;
break; // Exit loop if icon was found
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/DisplayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,14 @@ bool DisplayManager_::generateCustomPage(const String &name, JsonObject doc, boo
{
customApp.iconName = newIconName;
customApp.icon.close();
customApp.currentFrame = 0;
customApp.iconSearched = false;
}
}
else
{
customApp.icon.close();
customApp.currentFrame = 0;
customApp.iconSearched = false;
customApp.iconName = "";
}
Expand Down
1 change: 0 additions & 1 deletion src/Functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ uint32_t hsvToRgb(uint8_t h, uint8_t s, uint8_t v)
uint32_t hexToUint32(const char *hexString)
{
uint32_t rgbValue = (uint32_t)strtol(hexString, NULL, 16);
Serial.println(rgbValue);
return rgbValue; // Nur RGB, kein Alpha-Kanal
}

Expand Down
2 changes: 1 addition & 1 deletion src/GifPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class GifPlayer

if ((prevDisposalMethod != DISPOSAL_NONE) && (prevDisposalMethod != DISPOSAL_LEAVE))
{
mtx->clear();
//mtx->fillRect(offsetX, offsetY, lsdWidth, lsdHeight, 0);
}

if (prevDisposalMethod == DISPOSAL_BACKGROUND)
Expand Down
4 changes: 2 additions & 2 deletions src/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void loadSettings()
CALENDAR_HEADER_COLOR = Settings.getUInt("CHCOL", 0xFF0000);
CALENDAR_TEXT_COLOR = Settings.getUInt("CTCOL", 0x000000);
CALENDAR_BODY_COLOR = Settings.getUInt("CBCOL", 0xFFFFFF);
TRANS_EFFECT = Settings.getUInt("TEFF", 10);
TRANS_EFFECT = Settings.getUInt("TEFF", 1);
TIME_MODE = Settings.getUInt("TMODE", 1);
TIME_COLOR = Settings.getUInt("TIME_COL", 0);
DATE_COLOR = Settings.getUInt("DATE_COL", 0);
Expand Down Expand Up @@ -297,7 +297,7 @@ IPAddress gateway;
IPAddress subnet;
IPAddress primaryDNS;
IPAddress secondaryDNS;
const char *VERSION = "0.85";
const char *VERSION = "0.86";

String MQTT_HOST = "";
uint16_t MQTT_PORT = 1883;
Expand Down

0 comments on commit 551540d

Please sign in to comment.