Skip to content

Commit 9a391e2

Browse files
Needs to be with a response (#37)
Previously this worked on Windows but not Mac. We'll switch to writeValueWithResponse (the non-deprecated version) in a separate PR.
1 parent 1b08005 commit 9a391e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/accelerometer-service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export class AccelerometerService implements Service {
100100
const dataView = new DataView(new ArrayBuffer(2));
101101
dataView.setUint16(0, value, true);
102102
return this.queueGattOperation(() =>
103-
this.accelerometerPeriodCharacteristic.writeValueWithoutResponse(
104-
dataView,
105-
),
103+
this.accelerometerPeriodCharacteristic.writeValue(dataView),
106104
);
107105
}
108106

0 commit comments

Comments
 (0)