summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2016-09-24 13:23:49 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-09-24 13:24:15 +0200
commit740a4a52d9b5d00dc0beede63cc21b55e563d9c9 (patch)
tree64b12dde69e26e36b694bea413eb18c5e38aabaa /decoders
parent73c8d0fbdffe673d334f02bafb94f681a5c29ea9 (diff)
downloadlibsigrokdecode-740a4a52d9b5d00dc0beede63cc21b55e563d9c9.tar.gz
libsigrokdecode-740a4a52d9b5d00dc0beede63cc21b55e563d9c9.zip
midi: Simplify some boolean tests.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/midi/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py
index a631473..8c2e4ed 100644
--- a/decoders/midi/pd.py
+++ b/decoders/midi/pd.py
@@ -66,8 +66,8 @@ class Decoder(srd.Decoder):
return 'assuming ' + percussion_notes.get(note, 'undefined')
def check_for_garbage_flush(self, is_flushed):
- if is_flushed == True:
- if self.explicit_status_byte == True:
+ if is_flushed:
+ if self.explicit_status_byte:
self.cmd.insert(0, self.status_byte)
self.handle_garbage_msg(None)