diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt index 1e5ce23be9..bd745e614b 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt @@ -125,12 +125,14 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight if (!enter) { Handler().postDelayed({ hasAiLightStatus = false - hasObuLightStatus = false }, 5000) //如果没有OBU灯态则进行隐藏,如果有OBU灯态,则交由OBU管理 - CallerTrafficLightListenerManager.resetTrafficLightStatus(!hasObuLightStatus) if(!hasObuLightStatus){ + CallerTrafficLightListenerManager.resetTrafficLightStatus(!hasObuLightStatus) hide() + if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) { + CallerTelematicManager.sendMsgToAllClients(TelematicConstant.HIDE_TRAFFIC_LIGHT, "0".toByteArray()) + } } } } @@ -171,9 +173,6 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight private fun hide(){ CallerLogger.d("${SceneConstant.M_OBU}${TAG}", "hide() ---------> ") CallerTrafficLightListenerManager.disableTrafficLight() - if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) { - CallerTelematicManager.sendMsgToAllClients(TelematicConstant.HIDE_TRAFFIC_LIGHT, "0".toByteArray()) - } } /**