Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Apr 28, 2020
1 parent e5a586e commit 11dc905
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/safety/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ class UNSAFE_MODE:
DISABLE_STOCK_AEB = 2
RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX = 8

def twos_comp(val, bits):
if val >= 0:
return val
else:
return (2**bits) + val

def package_can_msg(msg):
addr, _, dat, bus = msg
rdlr, rdhr = struct.unpack('II', dat.ljust(8, b'\x00'))
Expand Down

0 comments on commit 11dc905

Please sign in to comment.