Skip to content

Commit

Permalink
RadioTask: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanqasim committed Apr 25, 2024
1 parent 34113b4 commit e2b55fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fw/RadioTask.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,13 +1110,11 @@ static void reactToAdvExtPDU(const BLE_Frame *frame, uint8_t advLen)
uint8_t AdvDataLen __attribute__((unused)) = 0;

uint8_t hdrBodyLen = 0;
uint8_t advMode;

// invalid if missing extended header length and AdvMode
if (advLen < 1)
return;

advMode = frame->pData[2] >> 6;
hdrBodyLen = frame->pData[2] & 0x3F;
if (advLen < hdrBodyLen + 1)
return; // inconsistent headers
Expand Down

0 comments on commit e2b55fa

Please sign in to comment.