Skip to content

Commit

Permalink
solves artifacts issue if .gif is exactly 1024 B (#1362)
Browse files Browse the repository at this point in the history
* solves artifacts issue if .gif is exactly 1024 B

solves Ralim/IronOS-Meta#18

* increased animation speed a tad
  • Loading branch information
discip authored Aug 10, 2022
1 parent 185516b commit e434490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Core/Drivers/BootLogo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ void BootLogo::showNewFormat(const uint8_t *ptrLogoArea) {
buttons = getButtonState();

if (interFrameDelay) {
osDelay(interFrameDelay * 5);
osDelay(interFrameDelay * 4);
}
// 1024 less the header type byte and the inter-frame-delay
if (getSettingValue(SettingsOptions::LOGOTime) > 0 && (position == 1022 || len == 0)) {
if (getSettingValue(SettingsOptions::LOGOTime) > 0 && (position >= 1022 || len == 0)) {
// Delay here until button is pressed or its been the amount of seconds set by the user
delay();
return;
Expand Down

0 comments on commit e434490

Please sign in to comment.