From aec184e327e3fc06c2e3be3327dddf213cf2fe02 Mon Sep 17 00:00:00 2001 From: Tnks2U Date: Tue, 4 Feb 2025 17:36:11 +0900 Subject: [PATCH] Update mainRouter.ts --- app/src/main/mainRouter.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/mainRouter.ts b/app/src/main/mainRouter.ts index 9c1f27d72..70267cba9 100644 --- a/app/src/main/mainRouter.ts +++ b/app/src/main/mainRouter.ts @@ -231,14 +231,20 @@ class MainRouter { const { hardware } = config; const { type = 'serial' } = hardware; this.scanner = this.scannerManager.getScanner(type); + debugger; + console.log('1'); if (this.scanner) { const moduleFilePath = directoryPaths.modules(); + console.log('2', moduleFilePath); this.hwModule = nativeNodeRequire( path.join(moduleFilePath, config.module) ) as IHardwareModule; this.sendState(HardwareStatement.scan); + console.log('3'); this.scanner.stopScan(); + console.log('4'); const connector = await this.scanner.startScan(this.hwModule, this.config); + console.log('5', connector); if (connector) { logger.info( `[Device Info] ${config.id} | ${