Skip to content

Commit c92db83

Browse files
committed
Fix indexing bug
1 parent ae09747 commit c92db83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testslave/testslavemodbus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool TestSlaveModbus::readData(QModbusDataUnit *newData) const
4242
return false;
4343
}
4444

45-
newData->setValue(regAddress, _pTestSlaveData->registerValue(regAddress));
45+
newData->setValue(idx, _pTestSlaveData->registerValue(regAddress));
4646
}
4747

4848
return true;

0 commit comments

Comments
 (0)