diff --git a/selfdrive/selfdrived/selfdrived.py b/selfdrive/selfdrived/selfdrived.py index 50009a76..06cad2d3 100644 --- a/selfdrive/selfdrived/selfdrived.py +++ b/selfdrive/selfdrived/selfdrived.py @@ -9,7 +9,7 @@ from cereal import car, custom, log from msgq.visionipc import VisionIpcClient, VisionStreamType -from opendbc.car.gm.values import CC_ONLY_CAR +from opendbc.car.gm.values import GMFlags from openpilot.common.params import Params from openpilot.common.realtime import config_realtime_process, Priority, Ratekeeper, DT_CTRL @@ -165,7 +165,7 @@ class SelfdriveD: self.starpilot_events_prev = [] - self.has_menu = self.CP.brand == "gm" and self.CP.carFingerprint not in CC_ONLY_CAR + self.has_menu = self.CP.brand == "gm" and not (self.CP.flags & GMFlags.NO_CAMERA.value) self.FPCP = messaging.log_from_bytes(self.params.get("StarPilotCarParams", block=True), custom.StarPilotCarParams)