Skip to content

Commit db51820

Browse files
kikoqiuhaslinghuis
andauthored
Update src/js/protocols/bluetooth.js
Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent 0f96cae commit db51820

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/protocols/bluetooth.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ class BT extends EventTarget {
358358
this.bytesSent += data.byteLength;
359359

360360
const dataBuffer = new Uint8Array(data);
361-
try{
362-
if(this.lastWrite){
361+
try {
362+
if (this.lastWrite){
363363
await this.lastWrite;
364364
}
365-
}catch(error){
365+
} catch(error) {
366366
console.error(error);
367367
}
368368
this.lastWrite = this.writeCharacteristic.writeValueWithoutResponse(dataBuffer);

0 commit comments

Comments
 (0)