Skip to content

Commit 5374c59

Browse files
Copilotjyong15
andcommitted
Improve comment to reference where delay is implemented
Co-authored-by: jyong15 <26561407+jyong15@users.noreply.github.com>
1 parent 3ff1a7b commit 5374c59

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ShimmerBluetoothManager/src/main/java/com/shimmerresearch/managers/bluetoothManager/ShimmerBluetoothManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,9 @@ protected void connectUnknownShimmer() throws ShimmerException {
918918
printMessage("Connecting to new Shimmer with connection handle = " + (connectThroughComPort? comPort:bluetoothAddress));
919919

920920
//radio address will be the com port in case of the PC and the BT address in case of Android
921-
// On MacOS, enable delay between command transmission and response reading
922-
// This gives the device time to process commands (200ms per command)
921+
// On MacOS, enable delay between command transmission and response reading.
922+
// This enables a 200ms delay in ShimmerRadioInitializer.readHardwareVersion()
923+
// to give the device time to process commands and prepare responses.
923924
boolean requiresCommandResponseDelay = UtilShimmer.isOsMac();
924925
shimmerRadioInitializer = new ShimmerRadioInitializer(null, requiresCommandResponseDelay);
925926
final AbstractSerialPortHal serialPortComm = createNewSerialPortComm(comPort, bluetoothAddress);

0 commit comments

Comments
 (0)