[690][led]LED崩溃修复

This commit is contained in:
xinfengkun
2025-01-13 16:24:24 +08:00
parent 8df874e5cd
commit 0bc0ddd0e8

View File

@@ -8,7 +8,7 @@ import com.mogo.support.device.IWriteChainLogListener
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.util.PriorityQueue
import java.util.concurrent.PriorityBlockingQueue
import kotlin.math.ceil
open class BaseLedUIViewModel(protected val writeChainLogListener: IWriteChainLogListener) :
@@ -21,7 +21,7 @@ open class BaseLedUIViewModel(protected val writeChainLogListener: IWriteChainLo
private var baseUICountDownJob: Job? = null
private var currentLedUI: LedUI
private var currentCountDownJob: Job? = null
private val restoreLedUIQueue = PriorityQueue<LedUI>()
private val restoreLedUIQueue = PriorityBlockingQueue<LedUI>()
private val currentLedUILiveData = MutableLiveData<LedUI>()