From cd1dba9ff8ee53db6edeada01ef8ec8094f44ffd Mon Sep 17 00:00:00 2001 From: Riccardo Date: Sat, 2 Jun 2018 23:30:30 -0700 Subject: [PATCH] Cadillac: fixed bug in regression safety --- tests/safety/test_cadillac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/safety/test_cadillac.py b/tests/safety/test_cadillac.py index d9f70ff111520d..53c943e966d6fc 100644 --- a/tests/safety/test_cadillac.py +++ b/tests/safety/test_cadillac.py @@ -43,7 +43,7 @@ def _torque_driver_msg(self, torque): to_send[0].RIR = 0x164 << 21 t = twos_comp(torque, 11) - to_send[0].RDLR = ((t >> 8) & 0x3) | ((t & 0xFF) << 8) + to_send[0].RDLR = ((t >> 8) & 0x7) | ((t & 0xFF) << 8) return to_send def _torque_driver_msg_array(self, torque):