Unverified Commit 9eb0adda authored by Fynn Godau's avatar Fynn Godau Committed by GitHub
Browse files

Omit RPIs in log (#1464)

parent aee45c22
......@@ -138,8 +138,7 @@ class AdvertiserService : LifecycleService() {
database.generateCurrentPayload(aemBytes)
}
val data = AdvertiseData.Builder().addServiceUuid(SERVICE_UUID).addServiceData(SERVICE_UUID, payload).build()
val (uuid, _) = ByteBuffer.wrap(payload).let { UUID(it.long, it.long) to it.int }
Log.i(TAG, "Starting advertiser for RPI $uuid")
Log.i(TAG, "Starting advertiser")
if (Build.VERSION.SDK_INT >= 26) {
setCallback = SetCallback()
val params = AdvertisingSetParameters.Builder()
......@@ -201,8 +200,7 @@ class AdvertiserService : LifecycleService() {
@Synchronized
private fun stopOrRestartAdvertising() {
if (!advertising) return
val (uuid, _) = ByteBuffer.wrap(sendingBytes).let { UUID(it.long, it.long) to it.int }
Log.i(TAG, "Stopping advertiser for RPI $uuid")
Log.i(TAG, "Stopping advertiser")
advertising = false
if (Build.VERSION.SDK_INT >= 26) {
wantStartAdvertising = true
......
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