Move/RN computeNSlotsPerDgram to Device::getNSlotsPerDgram
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <asynchronousLoop.h>
|
||||
#include <componentThread.h>
|
||||
#include <user/stimulusFrame.h>
|
||||
#include <livoxProto1/device.h>
|
||||
#include "livoxGen1.h"
|
||||
#include "openClCollatingAndMeshingEngine.h"
|
||||
#include "pcloudStimulusProducer.h"
|
||||
@@ -645,7 +646,7 @@ bool OpenClCollatingAndMeshingEngine::setupCollateDgramsArgs(
|
||||
}
|
||||
int returnMode = static_cast<int>(parent.device->currentReturnMode);
|
||||
uint32_t nPointsPerSlot = static_cast<uint32_t>(
|
||||
IoUringAssemblyEngine::computePointsPerDgram(returnMode));
|
||||
livoxProto1::Device::getNPointsPerDgram(returnMode));
|
||||
uint32_t nDgramsPerFrame = static_cast<uint32_t>(
|
||||
frameAssemblyDesc->numSlots);
|
||||
|
||||
@@ -1030,7 +1031,9 @@ public:
|
||||
}
|
||||
|
||||
int returnMode = static_cast<int>(engine.parent.device->currentReturnMode);
|
||||
size_t pointsPerDgram = IoUringAssemblyEngine::computePointsPerDgram(returnMode);
|
||||
size_t pointsPerDgram = livoxProto1::Device::getNPointsPerDgram(
|
||||
returnMode);
|
||||
|
||||
uint32_t nSucceeded = context->frameAssemblyResult.nSucceeded.load();
|
||||
size_t totalPoints = nSucceeded * pointsPerDgram;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user