From 6d0194a3726b8bb5c7b1ad6840e77eb421029ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 16 Jan 2019 05:17:08 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20main.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main.js b/main.js index 9abc1d8..32da438 100644 --- a/main.js +++ b/main.js @@ -405,11 +405,6 @@ function iterateAddresses(isBools, deviceId, result, regName, regType, localOpti if (config[i].deviceId !== deviceId) continue; const address = config[i].address = parseInt(config[i].address, 10); - if (address < 0) { - adapter.log.error(`Invalid ${regName} address: ${address}`); - config.splice(i, 1); - continue; - } if (!isBools) { config[i].type = config[i].type || 'uint16be'; @@ -558,7 +553,7 @@ function parseConfig(callback) { } // Discrete inputs - iterateAddresses(false, deviceId, device.holdingRegs, 'holdingRegisters', 'holdingRegs', localOptions); + //iterateAddresses(false, deviceId, device.holdingRegs, 'holdingRegisters', 'holdingRegs', localOptions); // ------------- create states and objects ---------------------------- checkObjects(adapter.config, 'holdingRegs', 'holdingRegisters', 'Holding registers', tasks, newObjects);