diff --git a/src/index.ts b/src/index.ts index 4504f635..21f2535a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -281,7 +281,7 @@ async function main() { const deviceUpPollingInterval = getDeviceUpPollingInterval(parentOption); - const scanConfig = getScanConfiguration(parentOption); + const scanConfig = getScanConfiguration(options); await listenCmd(registrationConfig, scanConfig, deviceUpPollingInterval); }); @@ -327,7 +327,7 @@ async function main() { const deviceUpPollingInterval = getDeviceUpPollingInterval(parentOption); - const scanConfig = getScanConfiguration(parentOption); + const scanConfig = getScanConfiguration(options); const adfScanConfig: AdfAutoScanConfig = { ...scanConfig,