From 1a7c2d341f83070487e373c29d48120a6f842085 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Tue, 30 Apr 2024 20:42:36 +0200 Subject: [PATCH] signal when picture changes --- app/src/main/java/xdsopl/robot36/Decoder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/xdsopl/robot36/Decoder.java b/app/src/main/java/xdsopl/robot36/Decoder.java index 88547ca..0143656 100644 --- a/app/src/main/java/xdsopl/robot36/Decoder.java +++ b/app/src/main/java/xdsopl/robot36/Decoder.java @@ -331,6 +331,8 @@ public class Decoder { boolean pictureChanged = lastMode != mode || Math.abs(lastScanLineSamples - scanLineSamples) > scanLineToleranceSamples || Math.abs(lastSyncPulseIndex + scanLineSamples - pulses[pulses.length - 1]) > syncPulseToleranceSamples; + if (pictureChanged) + drawLines(0xff0000ff, 8); if (pulses[0] >= scanLineSamples && pictureChanged) { int endPulse = pulses[0]; int extrapolate = endPulse / scanLineSamples;