Update main.js

This commit is contained in:
2018-09-26 13:42:24 +08:00
parent c2233a63a5
commit c2c78ab034

View File

@@ -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: {}
};