Skip to content

Commit cc06ed8

Browse files
committed
fix: Fixed bug with 'Use Global Address Map' off (related with #100).
1 parent 2525372 commit cc06ed8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/modbusdataunitmap.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ ModbusDataUnitMap::ModbusDataUnitMap()
5353
///
5454
void ModbusDataUnitMap::addUnitMap(int id, QModbusDataUnit::RegisterType pointType, quint16 pointAddress, quint16 length)
5555
{
56-
if(_isGlobal)
57-
return;
58-
5956
_dataUnits.insert(id, {pointType, pointAddress, length});
6057
updateDataUnitMap();
6158
}

0 commit comments

Comments
 (0)