You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/15 02:24:10 UTC
[incubator-nuttx] branch master updated: boards/sim: Fix copy/paste bug
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 585ca7d028 boards/sim: Fix copy/paste bug
585ca7d028 is described below
commit 585ca7d028911ca0c4733c5cd08cb6509b1bd0c2
Author: Nathan Hartman <59...@users.noreply.github.com>
AuthorDate: Sun Aug 14 16:56:49 2022 -0400
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.
---
boards/sim/sim/sim/src/sim_ioexpander.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boards/sim/sim/sim/src/sim_ioexpander.c b/boards/sim/sim/sim/src/sim_ioexpander.c
index ad71041305..599ac68743 100644
--- a/boards/sim/sim/sim/src/sim_ioexpander.c
+++ b/boards/sim/sim/sim/src/sim_ioexpander.c
@@ -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);