@@ -559,18 +559,17 @@ def decode(self):
559
559
cond_idle_idx [TX ] = len (conds )
560
560
conds .append (idle_cond )
561
561
(rx , tx ) = self .wait (conds )
562
-
563
- if cond_data_idx [RX ] is not None and (self .matched & (0b1 << cond_data_idx [RX ])):
562
+ if cond_data_idx [RX ] is not None and self .matched [cond_data_idx [RX ]]:
564
563
self .inspect_sample (RX , rx , inv [RX ])
565
- if cond_edge_idx [RX ] is not None and ( self .matched & ( 0b1 << cond_edge_idx [RX ])) :
564
+ if cond_edge_idx [RX ] is not None and self .matched [ cond_edge_idx [RX ]] :
566
565
self .inspect_edge (RX , rx , inv [RX ])
567
566
self .inspect_idle (RX , rx , inv [RX ])
568
- if cond_idle_idx [RX ] is not None and ( self .matched & ( 0b1 << cond_idle_idx [RX ])) :
567
+ if cond_idle_idx [RX ] is not None and self .matched [ cond_idle_idx [RX ]] :
569
568
self .inspect_idle (RX , rx , inv [RX ])
570
- if cond_data_idx [TX ] is not None and ( self .matched & ( 0b1 << cond_data_idx [TX ])) :
569
+ if cond_data_idx [TX ] is not None and self .matched [ cond_data_idx [TX ]] :
571
570
self .inspect_sample (TX , tx , inv [TX ])
572
- if cond_edge_idx [TX ] is not None and ( self .matched & ( 0b1 << cond_edge_idx [TX ])) :
571
+ if cond_edge_idx [TX ] is not None and self .matched [ cond_edge_idx [TX ]] :
573
572
self .inspect_edge (TX , tx , inv [TX ])
574
573
self .inspect_idle (TX , tx , inv [TX ])
575
- if cond_idle_idx [TX ] is not None and ( self .matched & ( 0b1 << cond_idle_idx [TX ])) :
574
+ if cond_idle_idx [TX ] is not None and self .matched [ cond_idle_idx [TX ]] :
576
575
self .inspect_idle (TX , tx , inv [TX ])
0 commit comments