Update main.js
This commit is contained in:
parent
809ce35c23
commit
c2233a63a5
2
main.js
2
main.js
@ -250,7 +250,7 @@ function prepareConfig(config) {
|
|||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
config: {
|
config: {
|
||||||
type: params.type || 'tcp',
|
type: 'tcp',
|
||||||
round: parseInt(params.round, 10) || 0,
|
round: parseInt(params.round, 10) || 0,
|
||||||
timeout: parseInt(params.timeout, 10) || 5000,
|
timeout: parseInt(params.timeout, 10) || 5000,
|
||||||
defaultDeviceId: (params.deviceId === undefined || params.deviceId === null) ? 1 : (parseInt(params.deviceId, 10) || 0),
|
defaultDeviceId: (params.deviceId === undefined || params.deviceId === null) ? 1 : (parseInt(params.deviceId, 10) || 0),
|
||||||
|
Loading…
Reference in New Issue
Block a user