fix: speed warning
This commit is contained in:
parent
a015ab2c5f
commit
711c79dd61
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class GarminMapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun map(speed: Speed): IntArray {
|
fun map(speed: Speed): IntArray {
|
||||||
return setSpeed(speed.speed, speed.limit, speed.speed > speed.limit)
|
return setSpeed(speed.speed, speed.limit, speed.limit > 0 && speed.speed > speed.limit)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setTime(hours: Int, minutes: Int, traffic: Boolean = false, flag: Boolean = false): IntArray {
|
fun setTime(hours: Int, minutes: Int, traffic: Boolean = false, flag: Boolean = false): IntArray {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue