* @brief Handles a fatal read error from the read thread. */
| 277 | * @brief Handles a fatal read error from the read thread. |
| 278 | */ |
| 279 | void IO::Drivers::HID::onReadError() |
| 280 | { |
| 281 | if (!isOpen()) |
| 282 | return; |
| 283 | |
| 284 | ConnectionManager::instance().disconnectDevice(this); |
| 285 | Misc::Utilities::showMessageBox(tr("HID Device Error"), |
| 286 | tr("The HID device was disconnected or " |
| 287 | "encountered a fatal read error.")); |
| 288 | } |
| 289 | |
| 290 | /** |
| 291 | * @brief Re-enumerates all connected HID devices. |
nothing calls this directly
no test coverage detected