- added some code to RileyLinkBLE
This commit is contained in:
parent
d177e08355
commit
c00d6344e5
|
@ -431,7 +431,6 @@ public class RileyLinkBLE {
|
||||||
rval.resultCode = BLECommOperationResult.RESULT_NONE;
|
rval.resultCode = BLECommOperationResult.RESULT_NONE;
|
||||||
aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported");
|
aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported");
|
||||||
rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter);
|
rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter);
|
||||||
// TODO: 11/07/2016 UI update for user
|
|
||||||
} else {
|
} else {
|
||||||
BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID)
|
BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID)
|
||||||
.getCharacteristic(charaUUID);
|
.getCharacteristic(charaUUID);
|
||||||
|
@ -490,7 +489,7 @@ public class RileyLinkBLE {
|
||||||
// e.g. when the user switches from portrait to landscape.
|
// e.g. when the user switches from portrait to landscape.
|
||||||
rval.resultCode = BLECommOperationResult.RESULT_NONE;
|
rval.resultCode = BLECommOperationResult.RESULT_NONE;
|
||||||
aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported");
|
aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported");
|
||||||
// TODO: 11/07/2016 UI update for user
|
rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter);
|
||||||
} else {
|
} else {
|
||||||
BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID)
|
BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID)
|
||||||
.getCharacteristic(charaUUID);
|
.getCharacteristic(charaUUID);
|
||||||
|
@ -532,7 +531,7 @@ public class RileyLinkBLE {
|
||||||
// Catch if the service is not supported by the BLE device
|
// Catch if the service is not supported by the BLE device
|
||||||
rval.resultCode = BLECommOperationResult.RESULT_NONE;
|
rval.resultCode = BLECommOperationResult.RESULT_NONE;
|
||||||
aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported");
|
aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported");
|
||||||
// TODO: 11/07/2016 UI update for user
|
rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter);
|
||||||
} else {
|
} else {
|
||||||
BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID).getCharacteristic(
|
BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID).getCharacteristic(
|
||||||
charaUUID);
|
charaUUID);
|
||||||
|
|
Loading…
Reference in a new issue