diff --git a/packages/usb/src/index.ts b/packages/usb/src/index.ts index c3d0c78..f810e68 100644 --- a/packages/usb/src/index.ts +++ b/packages/usb/src/index.ts @@ -38,7 +38,7 @@ export default class USBAdapter extends Adapter<[timeout?: number]> { if (!this.device) throw new Error('Can not find printer'); - usb.on('detach', function (device) { + usb.usb.on('detach', function (device) { if (device == self.device) { self.emit('detach', device); self.emit('disconnect', device);