Fix opendbc hitl test (#2147)

needs opendbc
This commit is contained in:
Shane Smiskol
2025-02-12 01:23:05 -06:00
committed by GitHub
parent 978ee19005
commit deeb4840dc
2 changed files with 4 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ import binascii
from functools import wraps, partial
from itertools import accumulate
from opendbc.safety import Safety
from .base import BaseHandle
from .constants import FW_PATH, McuType
from .dfu import PandaDFU
@@ -712,7 +714,7 @@ class Panda:
def set_power_save(self, power_save_enabled=0):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xe7, int(power_save_enabled), 0, b'')
def set_safety_mode(self, mode=0, param=0): # Safety.SAFETY_SILENT
def set_safety_mode(self, mode=Safety.SAFETY_SILENT, param=0):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xdc, mode, param, b'')
def set_obd(self, obd):