This commit is contained in:
zhongchao
2021-11-27 18:34:00 +08:00
parent b1c432bd9d
commit fd342a9567

View File

@@ -131,7 +131,8 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
}
lastResult?.let {
//如果上次结果和本次灯态结果变化比较大则已变灯控制HMI展示弹窗
if (abs(it.remain - currentResult!!.remain) > 5) {
if (abs(currentResult!!.remain - it.remain) > 5) {
Logger.d(TAG,"调用showWarningV2X to show")
CallerHmiManager.showWarningV2X(EventTypeEnum.TYPE_VIP_IDENTIFICATION.poiType.toInt(),
EventTypeEnum.TYPE_VIP_IDENTIFICATION.content,
EventTypeEnum.TYPE_VIP_IDENTIFICATION.tts,