From 1c2d7f8f6b21659fd768ef08ff6fb4b3e15dc514 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:22:35 -0600 Subject: [PATCH] fix compiler warnings - Beesign: comment out unused code; fix function call parenthasis; --- src/main/drivers/beesign.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/drivers/beesign.c b/src/main/drivers/beesign.c index ea6bfeee53..aa26debe57 100644 --- a/src/main/drivers/beesign.c +++ b/src/main/drivers/beesign.c @@ -101,10 +101,11 @@ static uint8_t beesignCRC(const beesign_frame_t *pPackage) { return crc; } -static uint8_t beesignChkID(uint8_t id) { - UNUSED(id); - return BEESIGN_OK; -} +// compiler reports unused +//static uint8_t beesignChkID(uint8_t id) { +// UNUSED(id); +// return BEESIGN_OK; +//} uint8_t beesignReceive(uint8_t **pRcvFrame) { if (!receiveFrameValid) { @@ -608,7 +609,7 @@ bool checkBeesignSerialPort(void) { void beesignUpdate(timeUs_t currentTimeUs) { UNUSED(currentTimeUs); - if (checkBeesignSerialPort) { + if (checkBeesignSerialPort()) { #ifdef USE_OSD_BEESIGN static uint32_t beesignTaskCounter = 0; static uint32_t beesignSendNextCounterPoint = 0;