    except MessageTimeoutError:
      print("Timeout fetching data from EPS")
      quit()
  
    coding_variant, current_coding_array = None, None
    # EV_SteerAssisMQB covers the majority of MQB racks (EPS_MQB_ZFLS)
    # APA racks (MQB_PP_APA) have a different coding layout, which should
    # be easy to support once we identify the specific config bit
    if odx_file == "EV_SteerAssisMQB\x00":
      coding_variant = "ZF"
 
</s> remove     current_coding_array = struct.unpack("!4B", current_coding)
    hca_enabled = (current_coding_array[0] & (1 << 4) != 0)
    hca_text = ("DISABLED", "ENABLED")[hca_enabled]
    print(f"   Lane Assist:  {hca_text}")
 </s> add     coding_byte = 0
    coding_bit = 4

  # APA racks (MQB_PP_APA) have a different coding layout
  elif odx_file == "EV_SteerAssisVWBSMQBA\x00\x00\x00\x00":
    coding_variant = "APA"
    coding_byte = 3
    coding_bit = 0
 </s> remove   # APA racks (MQB_PP_APA) have a different coding layout, which should
  # be easy to support once we identify the specific config bit
 </s> add 
  coding_variant, current_coding_array, coding_byte, coding_bit = None, None, 0, 0
  coding_length = len(current_coding)

    except MessageTimeoutError:
      print("Timeout fetching data from EPS")
      quit()
  
  coding_variant, current_coding_array, coding_byte, coding_bit = None, None, 0, 0
  coding_length = len(current_coding)

    # EV_SteerAssisMQB covers the majority of MQB racks (EPS_MQB_ZFLS)
    # APA racks (MQB_PP_APA) have a different coding layout, which should
    # be easy to support once we identify the specific config bit
    if odx_file == "EV_SteerAssisMQB\x00":
      coding_variant = "ZF"
keep keep keep keep replace keep keep keep keep keep
 VW MQB: Added support for APA racks to EPS configuration tool (#25556)

* Added support for APA racks

APA steering racks use a different bit to represent whether the ECU should enable steering assist.
This change supports those APA steering racks.

* Static analysis fix

* Static analysis fix2

* Code cleanup

* Update selfdrive/debug/vw_mqb_config.py

* Apply suggestions from code review

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com> 
selfdrive/debug/vw_mqb_config.py