mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/cc26x0: Cast gpio_t to unsigned int for comparison
This commit is contained in:
parent
abca77beb0
commit
eff01f21f8
@ -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…
Reference in New Issue
Block a user