- private void startAltosBluetooth(BluetoothDevice d) {
- if (D) Log.i(TAG, "Connecting to " + d.getName());
- mAltosBluetooth = new AltosBluetooth(d, mHandler);
+ private void startAltosBluetooth() {
+ if (mAltosBluetooth == null) {
+ if (D) Log.i(TAG, "Connecting to " + device.getName());
+ mAltosBluetooth = new AltosBluetooth(device, mHandler);