[SX127x] Fixed CodeQL alerts

This commit is contained in:
jgromes 2020-09-12 13:45:53 +02:00
parent ffe1c38c1f
commit b650d15f76

View file

@ -755,7 +755,7 @@ int16_t SX127x::setSyncWord(uint8_t* syncWord, size_t len) {
RADIOLIB_CHECK_RANGE(len, 1, 8, ERR_INVALID_SYNC_WORD); RADIOLIB_CHECK_RANGE(len, 1, 8, ERR_INVALID_SYNC_WORD);
// sync word must not contain value 0x00 // 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) { if(syncWord[i] == 0x00) {
return(ERR_INVALID_SYNC_WORD); return(ERR_INVALID_SYNC_WORD);
} }