feat: changes

This commit is contained in:
2026-01-30 17:04:36 +01:00
parent a16c79575f
commit 1ca2a70bc1
8 changed files with 113 additions and 50 deletions

View File

@@ -158,7 +158,7 @@ export class CharaDevice {
constructor(
readonly port: SerialPortLike,
public baudRate = 115200,
public baudRate = navigator.userAgent.includes("Mac") ? 38400 : 115200,
) {}
async init() {
@@ -621,9 +621,8 @@ export class CharaDevice {
});
} finally {
writer.releaseLock();
await this.suspend();
}
await this.suspend();
} finally {
delete this.lock;
resolveLock!(true);