Skip to content

Commit

Permalink
Fix accidental reversal of Write with/without response
Browse files Browse the repository at this point in the history
  • Loading branch information
ssimek committed Mar 11, 2022
1 parent c0a7249 commit 6bd928d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/triaxis.Common.BluetoothLE/iOS/Peripheral.Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ class WriteCharacteristicOperation : CharacteristicOperation<byte[]>
private readonly byte[] _data;
private bool _response;

public WriteCharacteristicOperation(Characteristic characteristic, byte[] data, bool response)
public WriteCharacteristicOperation(Characteristic characteristic, byte[] data, bool withoutResponse)
: base(characteristic)
{
_data = data;
_response = response;
_response = !withoutResponse;
}

protected override void Start()
Expand Down

0 comments on commit 6bd928d

Please sign in to comment.