|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
#!/usr/bin/env python |
|
|
|
|
import os |
|
|
|
|
import gc |
|
|
|
|
import capnp |
|
|
|
|
from cereal import car, log |
|
|
|
@ -440,7 +441,8 @@ def controlsd_thread(gctx=None): |
|
|
|
|
logcan.close() |
|
|
|
|
|
|
|
|
|
# TODO: Use the logcan socket from above, but that will currenly break the tests |
|
|
|
|
can_sock = messaging.sub_sock(service_list['can'].port, timeout=100) |
|
|
|
|
can_timeout = None if os.environ.get('NO_CAN_TIMEOUT', False) else 100 |
|
|
|
|
can_sock = messaging.sub_sock(service_list['can'].port, timeout=can_timeout) |
|
|
|
|
|
|
|
|
|
car_recognized = CP.carName != 'mock' |
|
|
|
|
# If stock camera is disconnected, we loaded car controls and it's not chffrplus |
|
|
|
|