From c00d6344e56e1d6d3f3b5730513e8be36d4facaa Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Sat, 9 May 2020 12:09:47 +0100 Subject: [PATCH] - added some code to RileyLinkBLE --- .../plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java index a68796dfea..51d964b7bd 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java @@ -431,7 +431,6 @@ public class RileyLinkBLE { rval.resultCode = BLECommOperationResult.RESULT_NONE; aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported"); rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter); - // TODO: 11/07/2016 UI update for user } else { BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID) .getCharacteristic(charaUUID); @@ -490,7 +489,7 @@ public class RileyLinkBLE { // e.g. when the user switches from portrait to landscape. rval.resultCode = BLECommOperationResult.RESULT_NONE; aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported"); - // TODO: 11/07/2016 UI update for user + rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter); } else { BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID) .getCharacteristic(charaUUID); @@ -532,7 +531,7 @@ public class RileyLinkBLE { // Catch if the service is not supported by the BLE device rval.resultCode = BLECommOperationResult.RESULT_NONE; aapsLogger.error(LTag.PUMPBTCOMM, "BT Device not supported"); - // TODO: 11/07/2016 UI update for user + rileyLinkServiceData.setServiceState(RileyLinkServiceState.BluetoothError, RileyLinkError.NoBluetoothAdapter); } else { BluetoothGattCharacteristic chara = bluetoothConnectionGatt.getService(serviceUUID).getCharacteristic( charaUUID);