From 1c1ca9b89002cd424f5f1d47599169de975e6229 Mon Sep 17 00:00:00 2001 From: "bernet.andre@gmail.com" Date: Sat, 23 Mar 2013 20:54:16 +0000 Subject: [PATCH] [Taranis] DBLKEYS! That's gonna make things easier! --- src/taranis/board_taranis.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/taranis/board_taranis.h b/src/taranis/board_taranis.h index a03da20fd..d97604d91 100644 --- a/src/taranis/board_taranis.h +++ b/src/taranis/board_taranis.h @@ -125,10 +125,10 @@ void init_trainer_capture(); void keysInit(); uint32_t readKeys(); #define KEYS_PRESSED() (~readKeys()) -#define DBLKEYS_PRESSED_RGT_LFT(i) ((in & (0x20 + 0x40)) == (0x20 + 0x40)) -#define DBLKEYS_PRESSED_UP_DWN(i) ((in & (0x10 + 0x08)) == (0x10 + 0x08)) -#define DBLKEYS_PRESSED_RGT_UP(i) ((in & (0x20 + 0x10)) == (0x20 + 0x10)) -#define DBLKEYS_PRESSED_LFT_DWN(i) ((in & (0x40 + 0x08)) == (0x40 + 0x08)) +#define DBLKEYS_PRESSED_RGT_LFT(i) ((in & ((2<