Fixed reversed Enter and ESC keys for Module17

This commit is contained in:
Mathis Schmieder 2021-11-26 08:31:53 +00:00 committed by silseva
parent 22a0d73fbc
commit 3d987a8ae8
1 changed files with 2 additions and 2 deletions

View File

@ -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;