From 5c89f40d06b0afe0f22d205363c62ef9745548c5 Mon Sep 17 00:00:00 2001 From: Kilgarragh <126100118+Kilgarragh@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:52:56 -0500 Subject: [PATCH] fix lpc clock issue without this patch, decode() wouldn't save oldlclk unless lclk is low. Making the rest of the function repeat every sample while lclk is high, instead of on the rising edge. --- decoders/lpc/pd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py index 2a88e304..6e846b7c 100644 --- a/decoders/lpc/pd.py +++ b/decoders/lpc/pd.py @@ -331,6 +331,7 @@ def decode(self): if not (self.oldlclk == 0 and lclk == 1): self.oldlclk = lclk continue + self.oldlclk = lclk # Store LAD[3:0] bit values (one nibble) in local variables. # Most (but not all) states need this.