Skip to content

Commit 4264e97

Browse files
TebbeUbbencaspervk
authored andcommitted
Fix Bluetooth connection for OmniPod Dash on Android 16
1 parent 6ef7548 commit 4264e97

File tree

1 file changed

+4
-3
lines changed
  • pump/omnipod-dash/src/main/kotlin/app/aaps/pump/omnipod/dash/driver/comm/session

1 file changed

+4
-3
lines changed

pump/omnipod-dash/src/main/kotlin/app/aaps/pump/omnipod/dash/driver/comm/session/Connection.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ class Connection(
7777
Thread.sleep(SLEEP_WHEN_FAILING_TO_CONNECT_GATT) // Do not retry too often
7878
throw FailedToConnectException("connectGatt() returned null")
7979
}
80-
if (!gatt.connect()) {
81-
throw FailedToConnectException("connect() returned false")
82-
}
80+
gatt.connect()
81+
// if (!gatt.connect()) {
82+
// throw FailedToConnectException("connect() returned false")
83+
// }
8384
val before = SystemClock.elapsedRealtime()
8485
if (waitForConnection(connectionWaitCond) !is Connected) {
8586
podState.bluetoothConnectionState = OmnipodDashPodStateManager.BluetoothConnectionState.DISCONNECTED

0 commit comments

Comments
 (0)