Finished modbus write values implementation

This commit is contained in:
2021-05-09 23:12:20 +02:00
parent 3a3c385a55
commit 2505c2b695
6 changed files with 127 additions and 22 deletions
+5
View File
@@ -115,6 +115,11 @@ bool ChangeValuesModel::setData(const QModelIndex &index, const QVariant &value,
return false;
}
QVector<quint16> ChangeValuesModel::values() const
{
return m_registers.mid(m_firstRegister, m_count);
}
void ChangeValuesModel::setFirstRegister(uint16_t firstRegister)
{
beginResetModel();