From 470cfe2035893ec4847d4912827b6d2fe4c4d239 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 20 Dec 2023 01:59:30 -0800 Subject: [PATCH] fix spacing --- selfdrive/car/ford/fingerprints.py | 1 - selfdrive/car/gm/fingerprints.py | 1 - selfdrive/car/honda/fingerprints.py | 1 - selfdrive/car/mazda/fingerprints.py | 1 - selfdrive/car/subaru/fingerprints.py | 1 - selfdrive/car/toyota/fingerprints.py | 1 - selfdrive/car/volkswagen/fingerprints.py | 1 - selfdrive/debug/format_fingerprints.py | 4 ++-- 8 files changed, 2 insertions(+), 9 deletions(-) diff --git a/selfdrive/car/ford/fingerprints.py b/selfdrive/car/ford/fingerprints.py index 4efea03290..b3150d8277 100644 --- a/selfdrive/car/ford/fingerprints.py +++ b/selfdrive/car/ford/fingerprints.py @@ -3,7 +3,6 @@ from openpilot.selfdrive.car.ford.values import CAR Ecu = car.CarParams.Ecu - FW_VERSIONS = { CAR.BRONCO_SPORT_MK1: { (Ecu.eps, 0x730, None): [ diff --git a/selfdrive/car/gm/fingerprints.py b/selfdrive/car/gm/fingerprints.py index a80f2a51f5..5613d867c4 100644 --- a/selfdrive/car/gm/fingerprints.py +++ b/selfdrive/car/gm/fingerprints.py @@ -64,4 +64,3 @@ FINGERPRINTS = { 190: 6, 193: 8, 197: 8, 201: 8, 209: 7, 211: 2, 241: 6, 249: 8, 257: 8, 288: 5, 289: 8, 298: 8, 304: 1, 309: 8, 311: 8, 313: 8, 320: 3, 328: 1, 352: 5, 381: 8, 384: 4, 386: 8, 388: 8, 413: 8, 451: 8, 452: 8, 453: 6, 455: 7, 463: 3, 479: 3, 481: 7, 485: 8, 489: 8, 497: 8, 500: 6, 501: 8, 510: 8, 528: 5, 532: 6, 560: 8, 562: 8, 563: 5, 565: 5, 587: 8, 608: 8, 609: 6, 610: 6, 611: 6, 612: 8, 613: 8, 707: 8, 715: 8, 717: 5, 753: 5, 761: 7, 789: 5, 800: 6, 810: 8, 840: 5, 842: 5, 844: 8, 869: 4, 880: 6, 977: 8, 1001: 8, 1011: 6, 1017: 8, 1020: 8, 1033: 7, 1034: 7, 1217: 8, 1221: 5, 1233: 8, 1249: 8, 1259: 8, 1261: 7, 1263: 4, 1265: 8, 1267: 1, 1271: 8, 1280: 4, 1296: 4, 1300: 8, 1611: 8, 1930: 7 }], } - diff --git a/selfdrive/car/honda/fingerprints.py b/selfdrive/car/honda/fingerprints.py index b95039c484..1a5a163b32 100644 --- a/selfdrive/car/honda/fingerprints.py +++ b/selfdrive/car/honda/fingerprints.py @@ -3,7 +3,6 @@ from openpilot.selfdrive.car.honda.values import CAR Ecu = car.CarParams.Ecu - FW_VERSIONS = { CAR.ACCORD: { (Ecu.programmedFuelInjection, 0x18da10f1, None): [ diff --git a/selfdrive/car/mazda/fingerprints.py b/selfdrive/car/mazda/fingerprints.py index f31cc5b47a..ee1f4be38b 100644 --- a/selfdrive/car/mazda/fingerprints.py +++ b/selfdrive/car/mazda/fingerprints.py @@ -3,7 +3,6 @@ from openpilot.selfdrive.car.mazda.values import CAR Ecu = car.CarParams.Ecu - FW_VERSIONS = { CAR.CX5_2022: { (Ecu.eps, 0x730, None): [ diff --git a/selfdrive/car/subaru/fingerprints.py b/selfdrive/car/subaru/fingerprints.py index 2262700d2a..6625d14e5c 100644 --- a/selfdrive/car/subaru/fingerprints.py +++ b/selfdrive/car/subaru/fingerprints.py @@ -3,7 +3,6 @@ from openpilot.selfdrive.car.subaru.values import CAR Ecu = car.CarParams.Ecu - FW_VERSIONS = { CAR.ASCENT: { (Ecu.abs, 0x7b0, None): [ diff --git a/selfdrive/car/toyota/fingerprints.py b/selfdrive/car/toyota/fingerprints.py index 77bf21c0d4..8332f242b2 100644 --- a/selfdrive/car/toyota/fingerprints.py +++ b/selfdrive/car/toyota/fingerprints.py @@ -3,7 +3,6 @@ from openpilot.selfdrive.car.toyota.values import CAR Ecu = car.CarParams.Ecu - FW_VERSIONS = { CAR.AVALON: { (Ecu.abs, 0x7b0, None): [ diff --git a/selfdrive/car/volkswagen/fingerprints.py b/selfdrive/car/volkswagen/fingerprints.py index 40fc826bb2..56c658e404 100644 --- a/selfdrive/car/volkswagen/fingerprints.py +++ b/selfdrive/car/volkswagen/fingerprints.py @@ -3,7 +3,6 @@ from openpilot.selfdrive.car.volkswagen.values import CAR Ecu = car.CarParams.Ecu - FW_VERSIONS = { CAR.ARTEON_MK1: { (Ecu.engine, 0x7e0, None): [ diff --git a/selfdrive/debug/format_fingerprints.py b/selfdrive/debug/format_fingerprints.py index af55c984e7..5df24554e4 100755 --- a/selfdrive/debug/format_fingerprints.py +++ b/selfdrive/debug/format_fingerprints.py @@ -26,8 +26,8 @@ from openpilot.selfdrive.car.{{brand}}.values import CAR Ecu = car.CarParams.Ecu {% endif %} - {% if FINGERPRINTS[brand] %} + {% if fingerprints_comments %}{{ fingerprints_comments | join() }}\n\n{% endif %} FINGERPRINTS = { {% for car, fingerprints in FINGERPRINTS[brand].items() %} @@ -41,8 +41,8 @@ FINGERPRINTS = { {% endfor %} } {% endif %} - {% if FW_VERSIONS[brand] %} + FW_VERSIONS = { {% for car, _ in FW_VERSIONS[brand].items() %} CAR.{{PLATFORM_TO_ENUM_NAME[car]}}: {