mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-02-12 20:22:41 +00:00
feat: changes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user