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

Method onReadError

app/src/IO/Drivers/HID.cpp:279–288  ·  view source on GitHub ↗

* @brief Handles a fatal read error from the read thread. */

Source from the content-addressed store, hash-verified

277 * @brief Handles a fatal read error from the read thread.
278 */
279void 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.

Callers

nothing calls this directly

Calls 1

disconnectDeviceMethod · 0.80

Tested by

no test coverage detected