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; unused sPower;
  • Loading branch information
nerdCopter committed Feb 23, 2024
1 parent 8be0288 commit f8f826a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/drivers/beesign.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/main/io/spektrum_vtx_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const uint8_t vtxBsPi[SPEKTRUM_VTX_POWER_COUNT] = {
#endif // USE_VTX_BEESIGN

uint8_t convertSpektrumVtxPowerIndex(uint8_t sPower) {
UNUSED(sPower);
uint8_t devicePower = 0;
const vtxDevice_t *vtxDevice = vtxCommonDevice();
switch (vtxCommonGetDeviceType(vtxDevice)) {
Expand Down

0 comments on commit f8f826a

Please sign in to comment.