1
0
Fork 0

get the initial parameter values when the device is opened.

This commit is contained in:
Kevin Matz 2023-04-06 09:45:39 -04:00
parent 97ae66e231
commit 153786efa4
1 changed files with 3 additions and 0 deletions

View File

@ -88,8 +88,11 @@ void Widget::open()
{
if (getSerialNumber(500)) // check for valid call/response from device
{
{
std::scoped_lock lock(mtx_metadata_);
usb_mode_ = USBhost; // note connected state
}
getParameters(0, 500); // retrieve widget metadata
}
}