Move/RN computeNSlotsPerDgram to Device::getNSlotsPerDgram

This commit is contained in:
2025-11-16 12:37:25 -04:00
parent a18fab04a5
commit a4493b26a1
4 changed files with 36 additions and 27 deletions
@@ -40,9 +40,8 @@ public:
void assembleFrameReq(Callback<assembleFrameReqCbFn> cb);
// Telemetry helpers
static size_t computePointsPerDgram(int returnMode);
static size_t computePointsPerFrame(int returnMode, size_t nDgramsPerFrame)
{ return computePointsPerDgram(returnMode) * nDgramsPerFrame; }
{ return livoxProto1::Device::getNPointsPerDgram(returnMode) * nDgramsPerFrame; }
static bool compactionIsNeeded(uint32_t nSucceeded, uint32_t nTotal)
{ return nSucceeded != 0 && nTotal != 0 && nSucceeded != nTotal; }