* @brief Returns the active driver for the given device ID. */
| 285 | * @brief Returns the active driver for the given device ID. |
| 286 | */ |
| 287 | IO::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. |
no test coverage detected