Fixed missing include in 'keyboard_MDx.c'

replace/d47f3b6977ae0a9b096bff66a994b960e96795d4
Silvano Seva 2021-02-01 11:25:45 +01:00
rodzic 438540290b
commit 86c25d6e26
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -23,6 +23,7 @@
#include <interfaces/gpio.h>
#include <interfaces/delays.h>
#include <interfaces/keyboard.h>
#include <interfaces/platform.h>
#include "hwconfig.h"
void kbd_init()
@ -54,7 +55,8 @@ keyboard_t kbd_getKeys()
/* Use absolute position knob to emulate left and right buttons */
static uint8_t old_pos = 0;
uint8_t new_pos = platform_getChSelector();
if (old_pos != new_pos) {
if (old_pos != new_pos)
{
if (new_pos < old_pos)
keys |= KEY_LEFT;
else