|
|
@ -170,7 +170,7 @@ def spam_buttons_command(packer, button_val, idx, car_fingerprint): |
|
|
|
'CRUISE_BUTTONS': button_val, |
|
|
|
'CRUISE_BUTTONS': button_val, |
|
|
|
'CRUISE_SETTING': 0, |
|
|
|
'CRUISE_SETTING': 0, |
|
|
|
} |
|
|
|
} |
|
|
|
bus = get_pt_bus(car_fingerprint) |
|
|
|
bus = 2 |
|
|
|
return packer.make_can_msg("SCM_BUTTONS", bus, values, idx) |
|
|
|
return packer.make_can_msg("SCM_BUTTONS", bus, values, idx) |
|
|
|
|
|
|
|
|
|
|
|
def create_scm_command(packer, car_fingerprint, idx): |
|
|
|
def create_scm_command(packer, car_fingerprint, idx): |
|
|
@ -178,5 +178,5 @@ def create_scm_command(packer, car_fingerprint, idx): |
|
|
|
values = { |
|
|
|
values = { |
|
|
|
"SET_TO_X12": 0x12, |
|
|
|
"SET_TO_X12": 0x12, |
|
|
|
} |
|
|
|
} |
|
|
|
bus = get_pt_bus(car_fingerprint) |
|
|
|
bus = 2 |
|
|
|
return packer.make_can_msg("SCM_BUTTONS", bus, values, idx) |
|
|
|
return packer.make_can_msg("SCM_BUTTONS", bus, values, idx) |
|
|
|