boards/sim: Fix copy/paste bug

boards/sim/sim/sim/src/sim_ioexpander.c:
* sim_gpio_initialize(): Fix what appears to be a copy/paste bug
  causing a wrong GPIO pin number to be used.
This commit is contained in:
Nathan Hartman 2022-08-14 16:56:49 -04:00 committed by Xiang Xiao
parent 9b67c759cb
commit 585ca7d028
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ int sim_gpio_initialize(void)
IOEXP_SETDIRECTION(ioe, 1, IOEXPANDER_DIRECTION_OUT);
IOEXP_SETOPTION(ioe, 1, IOEXPANDER_OPTION_INVERT,
(void *)IOEXPANDER_VAL_NORMAL);
IOEXP_SETOPTION(ioe, 2, IOEXPANDER_OPTION_INTCFG,
IOEXP_SETOPTION(ioe, 1, IOEXPANDER_OPTION_INTCFG,
(void *)IOEXPANDER_VAL_DISABLE);
gpio_lower_half(ioe, 1, GPIO_OUTPUT_PIN, 1);