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

Method setPluginIndex

app/src/IO/Drivers/CANBus.cpp:582–590  ·  view source on GitHub ↗

* @brief Sets the plugin index and refreshes available interfaces. */

Source from the content-addressed store, hash-verified

580 * @brief Sets the plugin index and refreshes available interfaces.
581 */
582void IO::Drivers::CANBus::setPluginIndex(const quint8 index)
583{
584 if (index < m_pluginList.count() && m_pluginIndex != index) {
585 m_pluginIndex = index;
586 m_settings.setValue("CanBusDriver/pluginIndex", index);
587 refreshInterfaces();
588 Q_EMIT pluginIndexChanged();
589 }
590}
591
592/**
593 * @brief Sets the interface index.

Callers 1

setupCanbusConnectionMethod · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected