[6.1.0] fix bug of traffic light and v2n biz , plus change the range cross

This commit is contained in:
zhongchao
2023-09-25 12:01:08 +08:00
parent 80a99a27fb
commit 3f4d7caf3e
8 changed files with 43 additions and 25 deletions

View File

@@ -293,10 +293,10 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
"updateTrafficLight ----- currentTrafficLight = $currentTrafficLight"
)
currentTrafficLight?.let {
val remain = if (it.remain > 99) {
val remain = if (it.time() > 99) {
99
} else {
it.remain
it.time()
}
onTrafficLightPlusSource(it.convert(), remain, DataSourceType.AICLOUD)
}