Skip to content

Commit

Permalink
fixing the button IRQ state with the wifi sdk v3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Jan 22, 2025
1 parent 688dcab commit 501dce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matter/si91x/support/hal/rsi_hal_mcu_m4.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int soc_pll_config(void) {
#ifdef SL_CATALOG_SIMPLE_BUTTON_PRESENT
void sl_si91x_button_isr(uint8_t pin, int8_t state) {
(pin == SL_BUTTON_BTN0_PIN)
? sl_button_on_change(SL_BUTTON_BTN0_NUMBER, !state)
: sl_button_on_change(SL_BUTTON_BTN1_NUMBER, !state);
? sl_button_on_change(SL_BUTTON_BTN0_NUMBER, state)
: sl_button_on_change(SL_BUTTON_BTN1_NUMBER, state);
}
#endif //SL_CATALOG_SIMPLE_BUTTON_PRESENT

0 comments on commit 501dce4

Please sign in to comment.