Minor fixes

This commit is contained in:
Aleksander Nowakowski 2017-09-13 15:50:33 +02:00
parent 4a466b25bd
commit 3dace8136c
3 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;