Skip to content

Commit edd3d8b

Browse files
committed
beesign comment out unused code; beesign fix function call parenthasis; unused sPower; NEEDS TESTING
1 parent 42c113c commit edd3d8b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/main/drivers/beesign.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ static uint8_t beesignCRC(const beesign_frame_t *pPackage) {
101101
return crc;
102102
}
103103

104-
static uint8_t beesignChkID(uint8_t id) {
105-
UNUSED(id);
106-
return BEESIGN_OK;
107-
}
104+
// compiler reports unused
105+
//static uint8_t beesignChkID(uint8_t id) {
106+
// UNUSED(id);
107+
// return BEESIGN_OK;
108+
//}
108109

109110
uint8_t beesignReceive(uint8_t **pRcvFrame) {
110111
if (!receiveFrameValid) {
@@ -608,7 +609,7 @@ bool checkBeesignSerialPort(void) {
608609

609610
void beesignUpdate(timeUs_t currentTimeUs) {
610611
UNUSED(currentTimeUs);
611-
if (checkBeesignSerialPort) {
612+
if (checkBeesignSerialPort()) {
612613
#ifdef USE_OSD_BEESIGN
613614
static uint32_t beesignTaskCounter = 0;
614615
static uint32_t beesignSendNextCounterPoint = 0;

src/main/io/spektrum_vtx_control.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const uint8_t vtxBsPi[SPEKTRUM_VTX_POWER_COUNT] = {
113113
#endif // USE_VTX_BEESIGN
114114

115115
uint8_t convertSpektrumVtxPowerIndex(uint8_t sPower) {
116+
UNUSED(sPower);
116117
uint8_t devicePower = 0;
117118
const vtxDevice_t *vtxDevice = vtxCommonDevice();
118119
switch (vtxCommonGetDeviceType(vtxDevice)) {

0 commit comments

Comments
 (0)