Skip to content

Commit

Permalink
silence compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wimalopaan committed Jan 10, 2025
1 parent a1d8f16 commit d2d3ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/telemetry/crossfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void processCrossfireTelemetryFrame(uint8_t module, uint8_t* rxBuffer,
}

#if defined(COLORLCD)
const bool consumed = luaTelemetryQueueMgr.push(etx::span<const uint8_t>{&rxBuffer[1], rxBufferCount - 2}); // adds complete/valid frame
const bool consumed = luaTelemetryQueueMgr.push(etx::span<const uint8_t>{&rxBuffer[1], (size_t)(rxBufferCount - 2)}); // adds complete/valid frame (rxCount > 2)
#else
const bool consumed = false;
#endif
Expand Down

0 comments on commit d2d3ceb

Please sign in to comment.