Fix compilation

This commit is contained in:
sctanf
2026-03-11 17:49:36 -05:00
parent 64cf351853
commit 207dcd641e
2 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ class Tracker @JvmOverloads constructor(
) {
private val timer = BufferedTimer(1f)
private var timeAtLastUpdate: Long = System.currentTimeMillis()
private var timeScheduledSleep: Long = MAX_VALUE
private var timeScheduledSleep: Long = Long.MAX_VALUE
private var _rotation = Quaternion.IDENTITY
// IMU: +z forward, +x left, +y up

View File

@@ -142,7 +142,7 @@ class HIDCommon {
if (tracker.status == TrackerStatus.TIMED_OUT) {
// If tracker was previously sleeping/shutdown, reset the sleep time and status
// If there is some other error, the relevant packet should set it a little later
tracker.setSleepTime(MAX_VALUE)
tracker.setSleepTime(Long.MAX_VALUE)
tracker.status = TrackerStatus.OK
}
@@ -281,7 +281,7 @@ class HIDCommon {
if (timeout != null && timeout != 0) {
// 0 or 65535: disable timeout
if (timeout == 65535) {
tracker.setSleepTime(MAX_VALUE)
tracker.setSleepTime(Long.MAX_VALUE)
} else {
tracker.setSleepTime(System.currentTimeMillis() + timeout)
}