Fixed reversed Enter and ESC keys for Module17

pull/63/head
Mathis Schmieder 2021-11-26 08:31:53 +00:00 zatwierdzone przez silseva
rodzic 22a0d73fbc
commit 3d987a8ae8
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -45,8 +45,8 @@ keyboard_t kbd_getKeys()
{
keyboard_t keys = 0;
if(gpio_readPin(ENTER_SW) == 1) keys |= KEY_ESC;
if(gpio_readPin(ESC_SW) == 1) keys |= KEY_ENTER;
if(gpio_readPin(ENTER_SW) == 1) keys |= KEY_ENTER;
if(gpio_readPin(ESC_SW) == 1) keys |= KEY_ESC;
if(gpio_readPin(LEFT_SW) == 1) keys |= KEY_LEFT;
if(gpio_readPin(RIGHT_SW) == 1) keys |= KEY_RIGHT;
if(gpio_readPin(UP_SW) == 1) keys |= KEY_UP;