Skip to content

Commit 3ebd8b7

Browse files
authored
Merge pull request #242 from ShimmerEngineering/DEV-450
DEV-450_fix_state
2 parents 2cb5367 + 6d0c9ae commit 3ebd8b7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/driver/ShimmerDeviceCallbackAdapter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ public void hasStopStreaming() {
126126
// Send a notification msg to the UI through a callback (use a msg identifier notification message)
127127
CallbackObject callBackObject = new CallbackObject(ShimmerBluetooth.NOTIFICATION_SHIMMER_STOP_STREAMING, getMacId(), getComPort());
128128
mShimmerDevice.sendCallBackMsg(ShimmerBluetooth.MSG_IDENTIFIER_NOTIFICATION_MESSAGE, callBackObject);
129-
mShimmerDevice.setBluetoothRadioState(BT_STATE.CONNECTED);
129+
if (mShimmerDevice.isSDLogging()) {
130+
mShimmerDevice.setBluetoothRadioState(BT_STATE.SDLOGGING);
131+
} else {
132+
mShimmerDevice.setBluetoothRadioState(BT_STATE.CONNECTED);
133+
}
130134
}
131135

132136
public void startStreaming() {

0 commit comments

Comments
 (0)