@@ -559,18 +559,17 @@ def decode(self):
559559 cond_idle_idx [TX ] = len (conds )
560560 conds .append (idle_cond )
561561 (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 ]]:
564563 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 ]] :
566565 self .inspect_edge (RX , rx , inv [RX ])
567566 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 ]] :
569568 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 ]] :
571570 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 ]] :
573572 self .inspect_edge (TX , tx , inv [TX ])
574573 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 ]] :
576575 self .inspect_idle (TX , tx , inv [TX ])
0 commit comments