@gaidalou/control 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46413,7 +46413,7 @@ const Ec = class Ec {
46413
46413
  }
46414
46414
  static async sendMsg(t) {
46415
46415
  try {
46416
- if (!this.instance)
46416
+ if (!this.instance || !this.instance.serialPort)
46417
46417
  return;
46418
46418
  let n = this.instance.serialPort.writable.getWriter(), { value: o } = t;
46419
46419
  await n.write(new Uint8Array(o)), n.releaseLock();