From: Uwe Hermann Date: Wed, 8 Jan 2020 22:32:40 +0000 (+0100) Subject: cjtag: Drop some unused method arguments. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=89cc0719f2046d500378518e81f6f6357e5550b8;p=libsigrokdecode.git cjtag: Drop some unused method arguments. --- diff --git a/decoders/cjtag/pd.py b/decoders/cjtag/pd.py index b6d343a..c2ac2ae 100644 --- a/decoders/cjtag/pd.py +++ b/decoders/cjtag/pd.py @@ -273,10 +273,10 @@ class Decoder(srd.Decoder): self.ss_item = self.samplenum - def handle_tms_edge(self, tck, tms): + def handle_tms_edge(self): self.escape_edges += 1 - def handle_tapc_state(self, tck, tms): + def handle_tapc_state(self): self.oldcjtagstate = self.cjtagstate if self.escape_edges >= 8: @@ -296,7 +296,7 @@ class Decoder(srd.Decoder): while True: # Wait for a rising edge on TCK. tck, tms = self.wait({0: 'r'}) - self.handle_tapc_state(tck, tms) + self.handle_tapc_state() if self.cjtagstate == 'OSCAN1': if self.oscan1cycle == 0: # nTDI @@ -316,4 +316,4 @@ class Decoder(srd.Decoder): tck, tms_n = self.wait([{0: 'f'}, {1: 'e'}]) if tms_n != tms: tms = tms_n - self.handle_tms_edge(tck, tms) + self.handle_tms_edge()