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

Method setStopBitsIndex

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

* @brief Sets the stop bits index */

Source from the content-addressed store, hash-verified

1135 * @brief Sets the stop bits index
1136 */
1137void IO::Drivers::Modbus::setStopBitsIndex(const quint8 index)
1138{
1139 if (index < 3 && m_stopBitsIndex != index) {
1140 m_stopBitsIndex = index;
1141 m_settings.setValue("ModbusDriver/stopBitsIndex", index);
1142 Q_EMIT stopBitsIndexChanged();
1143 }
1144}
1145
1146/**
1147 * @brief Sets up external connections for timer events and translations

Callers 1

applyModbusStopBitsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected