Skip to content

Commit

Permalink
fix compiler warnings - Beesign: comment out unused code; fix functio…
Browse files Browse the repository at this point in the history
…n call parenthasis;
  • Loading branch information
nerdCopter committed Feb 23, 2024
1 parent 8be0288 commit d52b356
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/drivers/beesign.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d52b356

Please sign in to comment.