From f4d89f0893030f0b8827f3be0d07ebd4de89b315 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 20 Feb 2016 19:10:19 +0100 Subject: added long sleep for behavior check, read_callback is running, fixed device status and command status messages in logs --- device.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'device.cc') diff --git a/device.cc b/device.cc index 55ea943..90b37a7 100644 --- a/device.cc +++ b/device.cc @@ -48,6 +48,7 @@ CommError Device::recv(void *packet) { int retry_count = 0; Log::instance()(__PRETTY_FUNCTION__, Loglevel::DEBUG_L2); + std::this_thread::sleep_for( std::chrono::milliseconds(5000) ); if (mp_devhandle == NULL) throw std::runtime_error("Attempted HID receive on an invalid descriptor."); -- cgit v1.2.1