diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2016-09-24 13:23:49 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2016-09-24 13:24:15 +0200 |
commit | 740a4a52d9b5d00dc0beede63cc21b55e563d9c9 (patch) | |
tree | 64b12dde69e26e36b694bea413eb18c5e38aabaa /decoders | |
parent | 73c8d0fbdffe673d334f02bafb94f681a5c29ea9 (diff) | |
download | libsigrokdecode-740a4a52d9b5d00dc0beede63cc21b55e563d9c9.tar.gz libsigrokdecode-740a4a52d9b5d00dc0beede63cc21b55e563d9c9.zip |
midi: Simplify some boolean tests.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/midi/pd.py | 4 |
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) |