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);