livoxGen1: Make use of livoxProto1_getPcloudDataFdDesc
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <livoxProto1/device.h>
|
||||
#include "ioUringAssemblyEngine.h"
|
||||
#include "pcloudStimulusBuffer.h"
|
||||
#include "livoxGen1.h"
|
||||
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
@@ -44,7 +45,8 @@ bool IoUringAssemblyEngine::setup()
|
||||
{ return false; }
|
||||
|
||||
// Get UDP socket file descriptor
|
||||
int udpFd = parent.device->pcloudDataSocketDesc->native_handle();
|
||||
int udpFd = (*livoxProto1.livoxProto1_getPcloudDataFdDesc)()
|
||||
->native_handle();
|
||||
if (udpFd < 0)
|
||||
{ return false; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user