From c2c78ab03444e94c36ab50a6319a6fab639501d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 26 Sep 2018 13:42:24 +0800 Subject: [PATCH] Update main.js --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index b69d2cb..7fbfb40 100644 --- a/main.js +++ b/main.js @@ -251,9 +251,9 @@ function prepareConfig(config) { let options = { config: { type: 'tcp', - round: parseInt(params.round, 10) || 0, - timeout: parseInt(params.timeout, 10) || 5000, - defaultDeviceId: (params.deviceId === undefined || params.deviceId === null) ? 1 : (parseInt(params.deviceId, 10) || 0), + round: 0, + timeout: 5000 +// defaultDeviceId: (params.deviceId === undefined || params.deviceId === null) ? 1 : (parseInt(params.deviceId, 10) || 0), }, devices: {} };