summaryrefslogtreecommitdiff
path: root/decoders/atsha204a/pd.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-04-30 22:03:27 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2019-04-30 22:08:18 +0200
commitdcf65053104aa29162d985558260f5f8e7a859da (patch)
treebf29777b8d01d2f1e9b9579185062d9d1f40725f /decoders/atsha204a/pd.py
parentc35a4d56d561920def33005b775e3544ad830013 (diff)
downloadlibsigrokdecode-dcf65053104aa29162d985558260f5f8e7a859da.tar.gz
libsigrokdecode-dcf65053104aa29162d985558260f5f8e7a859da.zip
atsha204a: Minor indentation fixes.
Diffstat (limited to 'decoders/atsha204a/pd.py')
-rw-r--r--decoders/atsha204a/pd.py7
1 files changed, 3 insertions, 4 deletions
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'
-