From 3dace8136c2c5fd2a7241896c1af003d0f0e48bb Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Wed, 13 Sep 2017 15:50:33 +0200 Subject: [PATCH] Minor fixes --- dfu/src/main/java/no/nordicsemi/android/dfu/BaseDfuImpl.java | 2 +- .../no/nordicsemi/android/dfu/DfuServiceListenerHelper.java | 3 --- .../android/dfu/internal/scanner/BootloaderScanner.java | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dfu/src/main/java/no/nordicsemi/android/dfu/BaseDfuImpl.java b/dfu/src/main/java/no/nordicsemi/android/dfu/BaseDfuImpl.java index fe8e217..542d888 100644 --- a/dfu/src/main/java/no/nordicsemi/android/dfu/BaseDfuImpl.java +++ b/dfu/src/main/java/no/nordicsemi/android/dfu/BaseDfuImpl.java @@ -201,7 +201,7 @@ import no.nordicsemi.android.dfu.internal.scanner.BootloaderScannerFactory; } return new String(out); } - }; + } /* package */ BaseDfuImpl(final Intent intent, final DfuBaseService service) { mService = service; diff --git a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java index de32fef..bc401fa 100644 --- a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java +++ b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java @@ -22,9 +22,6 @@ package no.nordicsemi.android.dfu; -import android.bluetooth.BluetoothAdapter; -import android.bluetooth.BluetoothDevice; -import android.bluetooth.BluetoothManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; diff --git a/dfu/src/main/java/no/nordicsemi/android/dfu/internal/scanner/BootloaderScanner.java b/dfu/src/main/java/no/nordicsemi/android/dfu/internal/scanner/BootloaderScanner.java index d0b7499..ae5ba19 100644 --- a/dfu/src/main/java/no/nordicsemi/android/dfu/internal/scanner/BootloaderScanner.java +++ b/dfu/src/main/java/no/nordicsemi/android/dfu/internal/scanner/BootloaderScanner.java @@ -37,7 +37,7 @@ public interface BootloaderScanner { /** * After the buttonless jump from the application mode to the bootloader mode the service will wait this long for the advertising bootloader (in milliseconds). */ - long TIMEOUT = 5000l; // ms + long TIMEOUT = 5000L; // ms /** The bootloader may advertise with the same address or one with the last byte incremented by this value. F.e. 00:11:22:33:44:55 -> 00:11:22:33:44:56. FF changes to 00. */ int ADDRESS_DIFF = 1;