Skip to content

Commit cd1dba9

Browse files
committed
Cadillac: fixed bug in regression safety
1 parent ca0b6be commit cd1dba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/safety/test_cadillac.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _torque_driver_msg(self, torque):
4343
to_send[0].RIR = 0x164 << 21
4444

4545
t = twos_comp(torque, 11)
46-
to_send[0].RDLR = ((t >> 8) & 0x3) | ((t & 0xFF) << 8)
46+
to_send[0].RDLR = ((t >> 8) & 0x7) | ((t & 0xFF) << 8)
4747
return to_send
4848

4949
def _torque_driver_msg_array(self, torque):

0 commit comments

Comments
 (0)