From 6f2d4ce1f799f0e4b8f05d80dc86413e546bf96b Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 11 Feb 2025 21:49:37 +1300 Subject: [PATCH] add fixme and todo --- src/connection/ble_connection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connection/ble_connection.js b/src/connection/ble_connection.js index c62df05..5eee2ac 100644 --- a/src/connection/ble_connection.js +++ b/src/connection/ble_connection.js @@ -79,6 +79,8 @@ class BleConnection extends Connection { async write(bytes) { try { + // fixme: NetworkError: GATT operation already in progress. + // todo: implement mutex to prevent multiple writes when another write is in progress // we write to the rx characteristic, as that's where the radio reads from await this.rxCharacteristic.writeValue(bytes); } catch(e) {