MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setParityIndex

Method setParityIndex

app/src/IO/Drivers/Modbus.cpp:1113–1120  ·  view source on GitHub ↗

* @brief Sets the parity index */

Source from the content-addressed store, hash-verified

1111 * @brief Sets the parity index
1112 */
1113void IO::Drivers::Modbus::setParityIndex(const quint8 index)
1114{
1115 if (index < 5 && m_parityIndex != index) {
1116 m_parityIndex = index;
1117 m_settings.setValue("ModbusDriver/parityIndex", index);
1118 Q_EMIT parityIndexChanged();
1119 }
1120}
1121
1122/**
1123 * @brief Sets the data bits index

Callers 1

applyModbusParityFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected