From e43449011ecf08d42ae5639edb4ec8da4e81d030 Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Wed, 10 Aug 2022 02:16:05 +0200 Subject: [PATCH] solves artifacts issue if .gif is exactly 1024 B (#1362) * solves artifacts issue if .gif is exactly 1024 B solves https://github.com/Ralim/IronOS-Meta/issues/18 * increased animation speed a tad --- source/Core/Drivers/BootLogo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/Drivers/BootLogo.cpp b/source/Core/Drivers/BootLogo.cpp index 5113fadb..f21b8993 100644 --- a/source/Core/Drivers/BootLogo.cpp +++ b/source/Core/Drivers/BootLogo.cpp @@ -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;