@@ -79,10 +79,6 @@ def _get_interface_names():
7979interfaces = load_interfaces (interface_names )
8080
8181
82- def only_toyota_left (candidate_cars ):
83- return all (("TOYOTA" in c or "LEXUS" in c ) for c in candidate_cars ) and len (candidate_cars ) > 0
84-
85-
8682# **** for use live only ****
8783def fingerprint (logcan , sendcan ):
8884 fixed_fingerprint = os .environ .get ('FINGERPRINT' , "" )
@@ -134,22 +130,16 @@ def fingerprint(logcan, sendcan):
134130 finger [can .src ][can .address ] = len (can .dat )
135131
136132 for b in candidate_cars :
137- # Include bus 2 for toyotas to disambiguate cars using camera messages
138- # (ideally should be done for all cars but we can't for Honda Bosch)
139133 # Ignore extended messages and VIN query response.
140- if (can .src == b or (only_toyota_left (candidate_cars [b ]) and can .src == 2 )) and \
141- can .address < 0x800 and can .address not in [0x7df , 0x7e0 , 0x7e8 ]:
134+ if can .src == b and can .address < 0x800 and can .address not in [0x7df , 0x7e0 , 0x7e8 ]:
142135 candidate_cars [b ] = eliminate_incompatible_cars (can , candidate_cars [b ])
143136
144137 # if we only have one car choice and the time since we got our first
145138 # message has elapsed, exit
146139 for b in candidate_cars :
147- # Toyota needs higher time to fingerprint, since DSU does not broadcast immediately
148- if only_toyota_left (candidate_cars [b ]):
149- frame_fingerprint = 100 # 1s
150140 if len (candidate_cars [b ]) == 1 and frame > frame_fingerprint :
151- # fingerprint done
152- car_fingerprint = candidate_cars [b ][0 ]
141+ # fingerprint done
142+ car_fingerprint = candidate_cars [b ][0 ]
153143
154144 # bail if no cars left or we've been waiting for more than 2s
155145 failed = (all (len (cc ) == 0 for cc in candidate_cars .values ()) and frame > frame_fingerprint ) or frame > 200
0 commit comments