From b781135493fc80b98a8f5860093df7358816e8c1 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Mon, 19 Feb 2024 15:42:18 -0600 Subject: [PATCH] retain currentTimeUs, but mark as UNUSED; i think this is more proper based on other code. --- src/main/rx/crsf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/rx/crsf.c b/src/main/rx/crsf.c index cf2213395b..f9dedb68ba 100644 --- a/src/main/rx/crsf.c +++ b/src/main/rx/crsf.c @@ -129,7 +129,8 @@ typedef struct crsfPayloadLinkstatistics_s { int8_t downlink_SNR; } crsfLinkStatistics_t; -static void handleCrsfLinkStatisticsFrame(const crsfLinkStatistics_t* statsPtr) { +static void handleCrsfLinkStatisticsFrame(const crsfLinkStatistics_t* statsPtr, timeUs_t currentTimeUs) { + UNUSED(currentTimeUs); const crsfLinkStatistics_t stats = *statsPtr; CRSFsetLQ(stats.uplink_Link_quality); CRSFsetRFMode(stats.rf_Mode); @@ -213,7 +214,7 @@ STATIC_UNIT_TESTED void crsfDataReceive(uint16_t c, void *data) { if ((crsfFrame.frame.deviceAddress == CRSF_ADDRESS_FLIGHT_CONTROLLER) && (crsfFrame.frame.frameLength == CRSF_FRAME_ORIGIN_DEST_SIZE + CRSF_FRAME_LINK_STATISTICS_PAYLOAD_SIZE)) { const crsfLinkStatistics_t* statsFrame = (const crsfLinkStatistics_t*)&crsfFrame.frame.payload; - handleCrsfLinkStatisticsFrame(statsFrame); + handleCrsfLinkStatisticsFrame(statsFrame, currentTimeUs); } break; }