Skip to content

Commit e4e6976

Browse files
jagobagascondeadprogram
authored andcommitted
windows: disable cache when reading characteristics
1 parent 8fae597 commit e4e6976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gattc_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func (c *DeviceCharacteristic) Read(data []byte) (int, error) {
309309
return 0, errNoRead
310310
}
311311

312-
readOp, err := c.characteristic.ReadValueAsync()
312+
readOp, err := c.characteristic.ReadValueWithCacheModeAsync(bluetooth.BluetoothCacheModeUncached)
313313
if err != nil {
314314
return 0, err
315315
}

0 commit comments

Comments
 (0)