summaryrefslogtreecommitdiff
path: root/decoders/st7735/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/st7735/pd.py')
-rw-r--r--decoders/st7735/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/st7735/pd.py b/decoders/st7735/pd.py
index 626d2eb..d938a2c 100644
--- a/decoders/st7735/pd.py
+++ b/decoders/st7735/pd.py
@@ -108,7 +108,7 @@ class Decoder(srd.Decoder):
def put_desc(self, ss, es, cmd, data):
if cmd == -1:
return
- if META[cmd]:
+ if cmd in META:
self.put(ss, es, self.out_ann, [Ann.DESC,
['%s: %s' % (META[cmd]['name'].strip(), META[cmd]['desc'])]])
else: