mirror of
https://github.com/FunKey-Project/FunKey-GPIO-Mapping.git
synced 2025-12-12 17:58:54 +01:00
bug correction when using pin polarity to drive their activation
This commit is contained in:
parent
8ce97243a6
commit
83f4758c24
@ -51,8 +51,8 @@
|
||||
7+13, KEYBOARD, KEY_W, KEY_W, Brightness--
|
||||
11, KEYBOARD, KEY_Y, KEY_Y, Y
|
||||
7+11, KEYBOARD, KEY_C, KEY_C, Volume++
|
||||
#10, SHELL_COMMAND, poweroff, N_OE, Poweroff because N_OE_received
|
||||
10, KEYBOARD, KEY_T, KEY_T, Should Poweroff because N_OE_received
|
||||
10, SHELL_COMMAND, poweroff, N_OE, Poweroff because N_OE_received
|
||||
#10, KEYBOARD, KEY_T, KEY_T, Should Poweroff because N_OE_received
|
||||
|
||||
# Bypass to remove when button axp working:
|
||||
#7+15, KEYBOARD, KEY_Q, 7+11, Launch menu
|
||||
|
||||
@ -148,8 +148,8 @@ static void find_and_call_mapping_function(int idx_gpio_interrupted,
|
||||
gpio_found_pin_in_mapping = true;
|
||||
}
|
||||
|
||||
// Check if all other pins of current mapping were already activated in previous mask
|
||||
if(!mask_gpio_values[current->pins_idx[i]]){
|
||||
// Check if all other pins of current mapping are activated or were already activated in previous mask
|
||||
if(!mask_gpio_values[current->pins_idx[i]] && gpios_pins_active_high[current->pins_idx[i]]){
|
||||
all_gpio_activated_in_mapping = false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user