]> sigrok.org Git - libsigrokdecode.git/commitdiff
midi: Simplify some boolean tests.
authorUwe Hermann <redacted>
Sat, 24 Sep 2016 11:23:49 +0000 (13:23 +0200)
committerUwe Hermann <redacted>
Sat, 24 Sep 2016 11:24:15 +0000 (13:24 +0200)
decoders/midi/pd.py

index a6314733cc058ba1d2f552a9aae9b1be23f2afef..8c2e4ededd30d2ce084e354f875564cceefd740e 100644 (file)
@@ -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)