From d52b356ef34605e30ee85ba237e2754a7630c6ea Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:24:31 -0600 Subject: [PATCH] fix compiler warnings - Beesign: comment out unused code; fix function call parenthasis; --- src/main/drivers/beesign.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/drivers/beesign.c b/src/main/drivers/beesign.c index ea6bfeee53..a84e6997c1 100644 --- a/src/main/drivers/beesign.c +++ b/src/main/drivers/beesign.c @@ -101,10 +101,13 @@ static uint8_t beesignCRC(const beesign_frame_t *pPackage) { return crc; } +// 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 +611,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;