Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pozyx_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int PozyxClass::setConfigGPIO(int gpio_num, int mode, int pull, uint16_t remote_
assert(gpio_num > 0);
assert(gpio_num <= 4);
assert((mode == POZYX_GPIO_DIGITAL_INPUT) || (mode == POZYX_GPIO_PUSHPULL) || (mode == POZYX_GPIO_OPENDRAIN) );
assert((pull == POZYX_GPIO_NOPULL) || (mode == POZYX_GPIO_PULLUP) || (mode == POZYX_GPIO_PULLDOWN) );
assert((pull == POZYX_GPIO_NOPULL) || (pull == POZYX_GPIO_PULLUP) || (pull == POZYX_GPIO_PULLDOWN) );

uint8_t gpio_register = POZYX_CONFIG_GPIO1 + (gpio_num-1);
uint8_t mask = mode + (pull << 3);
Expand Down