From d9e7813ccff864383d7684f9e7413afccf05cb20 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Thu, 26 Dec 2024 00:20:08 +0100 Subject: [PATCH] lib: correctly initialize FIFO tail Otherwise we are doing a full wrap-around of garbage data before we catch up with the head. --- libpicohsdaoh/picohsdaoh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpicohsdaoh/picohsdaoh.c b/libpicohsdaoh/picohsdaoh.c index 34a9c42..7023a25 100644 --- a/libpicohsdaoh/picohsdaoh.c +++ b/libpicohsdaoh/picohsdaoh.c @@ -72,7 +72,7 @@ uint16_t idle_line_buf[MODE_H_ACTIVE_PIXELS]; uint32_t info_p[64]; uint32_t info_len; -int fifo_tail = 0; +int fifo_tail = RBUF_SLICES-1; int fifo_head = 0; static uint32_t vblank_line_vsync_off[] = {