Update main.js
This commit is contained in:
6
main.js
6
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: {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user