Skip to content

Commit 94c8717

Browse files
ErichMoragasshane
andauthored
Add missing HIGHLANDERH_TSS2 ESP & engine f/w (#25066)
* Add missing HIGHLANDERH_TSS2 ESP & engine f/w `@pkozlowski#5214` 2022 Highlander Hybrid (Poland) DongleID/route b2e9858e29db492b|2022-07-07--17-57-24 * Fix test_fw_query_on_routes with older routes Co-authored-by: Shane Smiskol <shane@smiskol.com>
1 parent 4c49323 commit 94c8717

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

selfdrive/car/toyota/values.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,13 @@ class ToyotaCarInfo(CarInfo):
954954
b'\x01F15264873500\x00\x00\x00\x00',
955955
b'\x01F152648C6300\x00\x00\x00\x00',
956956
b'\x01F152648J4000\x00\x00\x00\x00',
957+
b'\x01F152648J6000\x00\x00\x00\x00',
957958
],
958959
(Ecu.engine, 0x700, None): [
960+
b'\x01896630EE4000\x00\x00\x00\x00',
961+
b'\x01896630EE6000\x00\x00\x00\x00',
959962
b'\x01896630E67000\x00\x00\x00\x00',
960963
b'\x01896630EA1000\x00\x00\x00\x00',
961-
b'\x01896630EE4000\x00\x00\x00\x00',
962964
b'\x01896630EA1000\x00\x00\x00\x00897CF4801001\x00\x00\x00\x00',
963965
b'\x02896630E66000\x00\x00\x00\x00897CF4801001\x00\x00\x00\x00',
964966
b'\x02896630EB3000\x00\x00\x00\x00897CF4801001\x00\x00\x00\x00',

selfdrive/debug/test_fw_query_on_routes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
VERSIONS = get_interface_attr('FW_VERSIONS', ignore_none=True)
1818
SUPPORTED_BRANDS = VERSIONS.keys()
1919
SUPPORTED_CARS = [brand for brand in SUPPORTED_BRANDS for brand in interface_names[brand]]
20+
UNKNOWN_BRAND = "unknown"
2021

2122
try:
2223
from xx.pipeline.c.CarState import migration
@@ -126,10 +127,10 @@
126127
print("New style (exact):", exact_matches)
127128
print("New style (fuzzy):", fuzzy_matches)
128129

129-
padding = max([len(fw.brand) for fw in car_fw])
130+
padding = max([len(fw.brand or UNKNOWN_BRAND) for fw in car_fw])
130131
for version in sorted(car_fw, key=lambda fw: fw.brand):
131132
subaddr = None if version.subAddress == 0 else hex(version.subAddress)
132-
print(f" Brand: {version.brand:{padding}} - (Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}],")
133+
print(f" Brand: {version.brand or UNKNOWN_BRAND:{padding}} - (Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}],")
133134

134135
print("Mismatches")
135136
found = False

0 commit comments

Comments
 (0)