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

Method clearRegisterGroups

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

* @brief Clears all register groups */

Source from the content-addressed store, hash-verified

797 * @brief Clears all register groups
798 */
799void IO::Drivers::Modbus::clearRegisterGroups()
800{
801 m_registerGroups.clear();
802 m_currentGroupIndex = 0;
803
804 m_settings.beginWriteArray("ModbusDriver/registerGroups");
805 m_settings.endArray();
806
807 Q_EMIT registerGroupsChanged();
808}
809
810/**
811 * @brief Returns the number of configured register groups

Callers 2

applyModbusRegistersFunction · 0.45
loadRegisterGroupsMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected