SenseApiDesc: SAL_MLO: attach/detachDeviceReq: return parsed DA spec
This commit is contained in:
@@ -260,7 +260,7 @@ extern "C" void livoxGen1_attachDeviceReq(
|
||||
{
|
||||
std::cerr << __func__ << ": Failed to create Livox device: "
|
||||
<< desc->deviceSelector << std::endl;
|
||||
cb(false);
|
||||
cb(false, desc);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ extern "C" void livoxGen1_attachDeviceReq(
|
||||
<< desc->deviceIdentifier << ")\n";
|
||||
}
|
||||
|
||||
cb(success);
|
||||
cb(success, desc);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -319,7 +319,7 @@ extern "C" void livoxGen1_detachDeviceReq(
|
||||
{
|
||||
std::cerr << __func__ << ": Failed to destroy Livox device: "
|
||||
<< desc->deviceIdentifier << "\n";
|
||||
cb(false);
|
||||
cb(false, desc);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -341,7 +341,7 @@ extern "C" void livoxGen1_detachDeviceReq(
|
||||
std::cerr << __func__ << ": Race condition: device not found "
|
||||
"in g_attachedDevices for detachment: "
|
||||
<< desc->deviceIdentifier << "\n";
|
||||
cb(false);
|
||||
cb(false, desc);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ extern "C" void livoxGen1_detachDeviceReq(
|
||||
std::cout << __func__ << ": Successfully detached Livox device: "
|
||||
<< desc->deviceIdentifier << "\n";
|
||||
|
||||
cb(success);
|
||||
cb(success, desc);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user