Update main.js

This commit is contained in:
钟进 2018-09-26 13:40:56 +08:00
parent 809ce35c23
commit c2233a63a5

View File

@ -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),