summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-08-02 20:14:13 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-08-16 15:02:31 +0200
commit3f2a461681e5462e3917ddba7fb5e9ae7e31f29b (patch)
tree164d361c9da972f76cb633801f7dfb9ccb7d650f
parentf5250c609e0abaaee3ae0eb46b271568ac2a82b9 (diff)
downloadlibsigrokdecode-3f2a461681e5462e3917ddba7fb5e9ae7e31f29b.tar.gz
libsigrokdecode-3f2a461681e5462e3917ddba7fb5e9ae7e31f29b.zip
avr_isp: move "unknown command" to warning, drop empty 'bits' row
Use the warnings annotation class for the "Unknown command" message, the PE class (programming enabled) is unexpected and most probably a typo. Drop the empty 'bits' annotation row which has been unused since commit 3b0013416fcfb.
-rw-r--r--decoders/avr_isp/pd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/avr_isp/pd.py b/decoders/avr_isp/pd.py
index 5a76a9d..31dd841 100644
--- a/decoders/avr_isp/pd.py
+++ b/decoders/avr_isp/pd.py
@@ -49,7 +49,6 @@ class Decoder(srd.Decoder):
('dev', 'Device'),
)
annotation_rows = (
- ('bits', 'Bits', ()),
('commands', 'Commands', (Ann.PE, Ann.RSB0, Ann.RSB1, Ann.RSB2,
Ann.CE, Ann.RFB, Ann.RHFB, Ann.REFB,)),
('warnings', 'Warnings', (Ann.WARN,)),
@@ -182,7 +181,7 @@ class Decoder(srd.Decoder):
else:
c = '%02x %02x %02x %02x' % tuple(cmd)
r = '%02x %02x %02x %02x' % tuple(ret)
- self.putx([Ann.PE, ['Unknown command: %s (reply: %s)!' % (c, r)]])
+ self.putx([Ann.WARN, ['Unknown command: %s (reply: %s)!' % (c, r)]])
def decode(self, ss, es, data):
ptype, mosi, miso = data