[SX127x] Fixed CodeQL alerts
This commit is contained in:
parent
ffe1c38c1f
commit
b650d15f76
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ int16_t SX127x::setSyncWord(uint8_t* syncWord, size_t len) {
|
|||
RADIOLIB_CHECK_RANGE(len, 1, 8, ERR_INVALID_SYNC_WORD);
|
||||
|
||||
// sync word must not contain value 0x00
|
||||
for(uint8_t i = 0; i < len; i++) {
|
||||
for(size_t i = 0; i < len; i++) {
|
||||
if(syncWord[i] == 0x00) {
|
||||
return(ERR_INVALID_SYNC_WORD);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue