cpu/cc26x0: Cast gpio_t to unsigned int for comparison
This commit is contained in:
parent
c2b20f1f27
commit
a1f4d1617f
@ -34,7 +34,7 @@ static gpio_isr_ctx_t gpio_chan[GPIO_ISR_CHAN_NUMOF];
|
||||
|
||||
int gpio_init(gpio_t pin, gpio_mode_t mode)
|
||||
{
|
||||
if ((pin < 0) || (pin > 31))
|
||||
if ((unsigned int)pin > 31)
|
||||
return -1;
|
||||
|
||||
/* enable GPIO clock */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user