Skip to content

Commit

Permalink
LoRaMac: Fix unitializated variable
Browse files Browse the repository at this point in the history
Fixes a compiler error where datarate was potentially used unitialized.
  • Loading branch information
kohlschuetter committed Jul 21, 2022
1 parent 278c70d commit 69edfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -3256,7 +3256,7 @@ LoRaMacStatus_t LoRaMacMcpsRequest( McpsReq_t *mcpsRequest )
uint8_t fPort = 0;
void *fBuffer;
uint16_t fBufferSize;
int8_t datarate;
int8_t datarate = 0;
bool readyToSend = false;

if ( mcpsRequest == NULL ) {
Expand Down

0 comments on commit 69edfc0

Please sign in to comment.