diff options
Diffstat (limited to 'zephyr/emul/tcpc/emul_tcpci.c')
-rw-r--r-- | zephyr/emul/tcpc/emul_tcpci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zephyr/emul/tcpc/emul_tcpci.c b/zephyr/emul/tcpc/emul_tcpci.c index e5dcf78bdc..0deb0c2727 100644 --- a/zephyr/emul/tcpc/emul_tcpci.c +++ b/zephyr/emul/tcpc/emul_tcpci.c @@ -221,11 +221,10 @@ static int tcpci_emul_alert_changed(const struct emul *emul) bool alert_is_active = tcpci_emul_check_int(ctx); /** Trigger GPIO. */ - if (ctx->alert_gpio_port != NULL) { + if (ctx->irq_gpio.port != NULL) { /* Triggers on edge falling, so set to 0 when there is an alert. */ - rc = gpio_emul_input_set(ctx->alert_gpio_port, - ctx->alert_gpio_pin, + rc = gpio_emul_input_set(ctx->irq_gpio.port, ctx->irq_gpio.pin, alert_is_active ? 0 : 1); if (rc != 0) return rc; |