From e3fb0fafc2eb5065e1ee8326d3f7eed311247054 Mon Sep 17 00:00:00 2001
From: MultiMote <contact@mmote.ru>
Date: Sun, 17 Nov 2024 10:53:52 +0300
Subject: [PATCH] Fix capacitor BLE slow transfer

---
 src/client/capacitor_ble_impl.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/client/capacitor_ble_impl.ts b/src/client/capacitor_ble_impl.ts
index 03d15a3..6bb2b6b 100644
--- a/src/client/capacitor_ble_impl.ts
+++ b/src/client/capacitor_ble_impl.ts
@@ -149,7 +149,7 @@ export class NiimbotCapacitorBleClient extends NiimbotAbstractClient {
       await Utils.sleep(this.packetIntervalMs);
 
       const dw = new DataView(data.buffer, data.byteOffset, data.byteLength);
-      await BleClient.write(this.deviceId!, this.serviceUUID!, this.characteristicUUID!, dw);
+      await BleClient.writeWithoutResponse(this.deviceId!, this.serviceUUID!, this.characteristicUUID!, dw);
 
       this.emit("rawpacketsent", new RawPacketSentEvent(data));
     };