Commit 79ee49b7 authored by Andreas Schildbach's avatar Andreas Schildbach
Browse files

SetClockJob: Fix shadowing of gatt variable.

parent c05c72c6
......@@ -69,7 +69,7 @@ class SetClockJob(context: Context, workerParameters: WorkerParameters) : Worker
writeLatch?.countDown()
}
}
val gatt = device.connectGatt(applicationContext, true, callback)
gatt = device.connectGatt(applicationContext, true, callback)
if (!gattLatch.await(1, TimeUnit.MINUTES))
return Result.retry()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment