diff --git a/src/rgb_to_fb.S b/src/rgb_to_fb.S index 4cf0bd89..0f2954d0 100644 --- a/src/rgb_to_fb.S +++ b/src/rgb_to_fb.S @@ -35,12 +35,20 @@ wait_for_vsync_a: ldr r8, [r4] tst r8, #VSYNC_MASK beq wait_for_vsync_a + // Check again in case of noise + ldr r8, [r4] + tst r8, #VSYNC_MASK + beq wait_for_vsync_a // Wait for end of vsync wait_for_vsync_b: ldr r8, [r4] tst r8, #VSYNC_MASK bne wait_for_vsync_b + // Check again in case of noise + ldr r8, [r4] + tst r8, #VSYNC_MASK + bne wait_for_vsync_b // Skip inactive lines mov r5, #28