From: Uwe Hermann Date: Tue, 30 Apr 2019 20:03:27 +0000 (+0200) Subject: atsha204a: Minor indentation fixes. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dcf65053104aa29162d985558260f5f8e7a859da;p=libsigrokdecode.git atsha204a: Minor indentation fixes. --- diff --git a/decoders/atsha204a/pd.py b/decoders/atsha204a/pd.py index 8e37e5b..c0db9a4 100644 --- a/decoders/atsha204a/pd.py +++ b/decoders/atsha204a/pd.py @@ -246,8 +246,8 @@ class Decoder(srd.Decoder): elif op == OPCODE_DERIVE_KEY: self.putz(s[0][0], s[31][1], [5, ['MAC: %s' % ' '.join(format(i[2], '02x') for i in s)]]) elif op == OPCODE_ECDH: - self.putz(s[0][0], s[31][1], [5, ['Pub X: %s' % ' '.join(format(i[2], '02x') for i in s[0:32])]]) - self.putz(s[32][0], s[63][1], [5, ['Pub Y: %s' % ' '.join(format(i[2], '02x') for i in s[32:64])]]) + self.putz(s[0][0], s[31][1], [5, ['Pub X: %s' % ' '.join(format(i[2], '02x') for i in s[0:32])]]) + self.putz(s[32][0], s[63][1], [5, ['Pub Y: %s' % ' '.join(format(i[2], '02x') for i in s[32:64])]]) elif op in (OPCODE_GEN_DIG, OPCODE_GEN_KEY): self.putz(s[0][0], s[3][1], [5, ['OtherData: %s' % ' '.join(format(i[2], '02x') for i in s)]]) elif op == OPCODE_MAC: @@ -309,7 +309,7 @@ class Decoder(srd.Decoder): # responses to be displayed incorrectly. self.opcode = -1 if len(self.bytes) > 0: - self.output_rx_bytes() + self.output_rx_bytes() self.waddr = -1 self.bytes = [] self.state = 'IDLE' @@ -321,4 +321,3 @@ class Decoder(srd.Decoder): self.output_tx_bytes() self.bytes = [] self.state = 'IDLE' -