From: Uwe Hermann Date: Sat, 24 Sep 2016 11:23:49 +0000 (+0200) Subject: midi: Simplify some boolean tests. X-Git-Tag: libsigrokdecode-0.5.0~141 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=740a4a52d9b5d00dc0beede63cc21b55e563d9c9;p=libsigrokdecode.git midi: Simplify some boolean tests. --- 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)