Skip to content
Snippets Groups Projects
Commit ca5c1ef5 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

Merge branch 'HDAPIErrorFlush' into 'master'

BUG: Old errors cause new HDAPI devices to appear to fail

See merge request !181
parents e00f7b0d 59ba29a1
No related branches found
No related tags found
Loading
......@@ -35,6 +35,10 @@ HDAPIDeviceClient::init()
{
m_buttons = std::map < size_t, bool > { { 0, false }, { 1, false }, { 2, false }, { 3, false }};
//flush error stack
HDErrorInfo errorFlush;
while (HD_DEVICE_ERROR(errorFlush = hdGetError())) {}
// Open Device
m_handle = hdInitDevice(this->getDeviceName().c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment