[CC1101] Fixed signed comparison warning

This commit is contained in:
jgromes 2024-05-26 08:55:38 +02:00
parent 6c11480416
commit 45d3aac0d9

View file

@ -610,7 +610,7 @@ int16_t CC1101::checkOutputPower(int8_t power, int8_t* clipped, uint8_t* raw) {
// if just a check occurs (and not requesting the raw power value), return now // if just a check occurs (and not requesting the raw power value), return now
if(!raw) { if(!raw) {
for(int i = 0; i < sizeof(allowedPwrs); i++) { for(size_t i = 0; i < sizeof(allowedPwrs); i++) {
if(allowedPwrs[i] == power) { if(allowedPwrs[i] == power) {
return(RADIOLIB_ERR_NONE); return(RADIOLIB_ERR_NONE);
} }