ref: ffa79a8b26b1a82e42d8a8dda2d663960a25f070
parent: 2fc589e70cbaa20c9e8521fcf2a7452fd6ece533
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Thu Jun 1 17:19:49 EDT 2023
fw 3.1.0 background color detection hotfix, increase delay between enable and reset display
--- a/render.c
+++ b/render.c
@@ -7,10 +7,6 @@
#include <stdio.h>
#include "SDL2_inprint.h"
-#include "SDL_log.h"
-#include "SDL_rect.h"
-#include "SDL_render.h"
-#include "SDL_stdinc.h"
#include "command.h"
#include "fx_cube.h"
@@ -151,7 +147,7 @@
// Background color changed
if (render_rect.x == 0 && render_rect.y == 0 && render_rect.w == 320 &&
- render_rect.h == 240) {+ (render_rect.h == 240 || render_rect.h == 320)) {background_color.r = command->color.r;
background_color.g = command->color.g;
background_color.b = command->color.b;
--- a/serial.c
+++ b/serial.c
@@ -197,7 +197,7 @@
return 0;
}
- SDL_Delay(5);
+ SDL_Delay(10);
result = reset_display();
return result;
}
--
⑨