diff --git a/python/__init__.py b/python/__init__.py index d65d7dc4ba..692691e914 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -187,7 +187,7 @@ class Panda: FLAG_TOYOTA_ALT_BRAKE = (1 << 8) FLAG_TOYOTA_STOCK_LONGITUDINAL = (2 << 8) FLAG_TOYOTA_LTA = (4 << 8) - FLAG_TOYOTA_SECOC_CAR = (8 << 8) + FLAG_TOYOTA_SECOC = (8 << 8) FLAG_HONDA_ALT_BRAKE = 1 FLAG_HONDA_BOSCH_LONG = 2 diff --git a/tests/safety/test_toyota.py b/tests/safety/test_toyota.py index 75ff180029..a71da9a5e3 100755 --- a/tests/safety/test_toyota.py +++ b/tests/safety/test_toyota.py @@ -335,7 +335,7 @@ class TestToyotaSecOcSafety(TestToyotaStockLongitudinalBase): def setUp(self): self.packer = CANPackerPanda("toyota_rav4_prime_generated") self.safety = libpanda_py.libpanda - self.safety.set_safety_hooks(Panda.SAFETY_TOYOTA, self.EPS_SCALE | Panda.FLAG_TOYOTA_STOCK_LONGITUDINAL | Panda.FLAG_TOYOTA_SECOC_CAR) + self.safety.set_safety_hooks(Panda.SAFETY_TOYOTA, self.EPS_SCALE | Panda.FLAG_TOYOTA_STOCK_LONGITUDINAL | Panda.FLAG_TOYOTA_SECOC) self.safety.init_tests() # This platform also has alternate brake and PCM messages, but same naming in the DBC, so same packers work