[CC1101] Fixed signed comparison warning
This commit is contained in:
parent
6c11480416
commit
45d3aac0d9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue