Skip to content

Commit

Permalink
Update mainRouter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnks2U committed Feb 4, 2025
1 parent 1c6bc14 commit aec184e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/mainRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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} | ${
Expand Down

0 comments on commit aec184e

Please sign in to comment.