universal7885: FMRadio: Use correct function signature

Timer.schedule(TimerTask t, Long l1, Long l2) is running t with startdelay l1 and delaying l2 every execution
Timer.schedule(TimerTask t, Long l) is executing t after delay l and stops
We need to poll the HAL for mutex free, hence fix to first one
This commit is contained in:
roynatech2544 2022-10-24 18:50:09 +09:00
commit 1ed534a894

View file

@ -6,7 +6,7 @@ import java.util.Timer
import java.util.TimerTask
object WaitUntil {
fun setTimer(act: Activity, todo: IWaitUntil, timeout: Long = 15000) {
fun setTimer(act: Activity, todo: IWaitUntil, initdelay: Long = 5000, delay: Long = 500) {
Timer().schedule(
object : TimerTask() {
override fun run() {
@ -18,7 +18,7 @@ object WaitUntil {
})
}
},
timeout
initdelay, delay
)
}
}