From 3d987a8ae8bf75f39d10793200e47cf6111f6948 Mon Sep 17 00:00:00 2001 From: Mathis Schmieder Date: Fri, 26 Nov 2021 08:31:53 +0000 Subject: [PATCH] Fixed reversed Enter and ESC keys for Module17 --- platform/drivers/keyboard/keyboard_Mod17.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/drivers/keyboard/keyboard_Mod17.c b/platform/drivers/keyboard/keyboard_Mod17.c index 08fea3aa..4c9035c6 100644 --- a/platform/drivers/keyboard/keyboard_Mod17.c +++ b/platform/drivers/keyboard/keyboard_Mod17.c @@ -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;