Skip to content

Commit 6bd928d

Browse files
committed
Fix accidental reversal of Write with/without response
1 parent c0a7249 commit 6bd928d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/triaxis.Common.BluetoothLE/iOS/Peripheral.Operations.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ class WriteCharacteristicOperation : CharacteristicOperation<byte[]>
241241
private readonly byte[] _data;
242242
private bool _response;
243243

244-
public WriteCharacteristicOperation(Characteristic characteristic, byte[] data, bool response)
244+
public WriteCharacteristicOperation(Characteristic characteristic, byte[] data, bool withoutResponse)
245245
: base(characteristic)
246246
{
247247
_data = data;
248-
_response = response;
248+
_response = !withoutResponse;
249249
}
250250

251251
protected override void Start()

0 commit comments

Comments
 (0)