Skip to content

Commit

Permalink
fw 3.1.0 background color detection hotfix, increase delay between en…
Browse files Browse the repository at this point in the history
…able and reset display
  • Loading branch information
laamaa committed Jun 1, 2023
1 parent 2fc589e commit ffa79a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -151,7 +147,7 @@ void draw_rectangle(struct draw_rectangle_command *command) {

// 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;
Expand Down
2 changes: 1 addition & 1 deletion serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int enable_and_reset_display() {
return 0;
}

SDL_Delay(5);
SDL_Delay(10);
result = reset_display();
return result;
}
Expand Down

0 comments on commit ffa79a8

Please sign in to comment.