FPv2: only set multiplexing when needed (#27669)

* only set multiplexing if bus matters

* these don't matter anymore
pull/27670/head
Shane Smiskol 2 years ago committed by GitHub
parent 2ad9eec882
commit 9e023b3ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/car/fw_versions.py
  2. 2
      selfdrive/car/hyundai/values.py

@ -280,7 +280,8 @@ def get_fw_versions(logcan, sendcan, query_brand=None, extra=None, timeout=0.1,
continue
# Toggle OBD multiplexing for each request
set_obd_multiplexing(params, r.obd_multiplexing)
if r.bus % 4 == 1:
set_obd_multiplexing(params, r.obd_multiplexing)
try:
addrs = [(a, s) for (b, a, s) in addr_chunk if b in (brand, 'any') and

@ -369,7 +369,6 @@ FW_QUERY_CONFIG = FwQueryConfig(
whitelist_ecus=[Ecu.fwdCamera, Ecu.fwdRadar, Ecu.cornerRadar, Ecu.hvac],
bus=0,
auxiliary=True,
obd_multiplexing=False,
),
Request(
[HYUNDAI_VERSION_REQUEST_LONG],
@ -387,7 +386,6 @@ FW_QUERY_CONFIG = FwQueryConfig(
whitelist_ecus=[Ecu.parking],
bus=0,
auxiliary=True,
obd_multiplexing=False,
),
Request(
[HYUNDAI_VERSION_REQUEST_ALT],

Loading…
Cancel
Save