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

Method driver

app/src/IO/ConnectionManager.cpp:287–294  ·  view source on GitHub ↗

* @brief Returns the active driver for the given device ID. */

Source from the content-addressed store, hash-verified

285 * @brief Returns the active driver for the given device ID.
286 */
287IO::HAL_Driver* IO::ConnectionManager::driver(int deviceId) const
288{
289 auto it = m_devices.find(deviceId);
290 if (it == m_devices.end())
291 return nullptr;
292
293 return it->second->driver();
294}
295
296/**
297 * @brief Returns (lazily creating) a driver instance for editing source @p deviceId.

Callers 4

connectedBluetoothLEMethod · 0.45
disconnectDeviceMethod · 0.45
wireDeviceMethod · 0.45

Calls 1

findMethod · 0.80

Tested by

no test coverage detected