mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-02 08:09:14 +00:00
start head tracking for the first 5 seconds to calibrate
This commit is contained in:
@@ -932,6 +932,8 @@ class AirPodsService : Service() {
|
||||
it.outputStream.write(Enums.REQUEST_NOTIFICATIONS.value)
|
||||
it.outputStream.flush()
|
||||
delay(200)
|
||||
it.outputStream.write(Enums.START_HEAD_TRACKING.value)
|
||||
it.outputStream.flush()
|
||||
Handler(Looper.getMainLooper()).postDelayed({
|
||||
it.outputStream.write(Enums.HANDSHAKE.value)
|
||||
it.outputStream.flush()
|
||||
@@ -939,6 +941,8 @@ class AirPodsService : Service() {
|
||||
it.outputStream.flush()
|
||||
it.outputStream.write(Enums.REQUEST_NOTIFICATIONS.value)
|
||||
it.outputStream.flush()
|
||||
it.outputStream.write(Enums.STOP_HEAD_TRACKING.value)
|
||||
it.outputStream.flush()
|
||||
}, 5000)
|
||||
sendBroadcast(
|
||||
Intent(AirPodsNotifications.Companion.AIRPODS_CONNECTED)
|
||||
|
||||
Reference in New Issue
Block a user