From 9a7976cf6e385e3dd8f7b78c1853d7f33a5035c5 Mon Sep 17 00:00:00 2001 From: "gruvin@gmail.com" Date: Wed, 19 Sep 2012 09:12:18 +0000 Subject: [PATCH] Issue 133 resolved. (DBLKEYS now working on G9Xv4 board.) --- src/open9x.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/open9x.h b/src/open9x.h index f2f6a871c..ca5fdf109 100644 --- a/src/open9x.h +++ b/src/open9x.h @@ -238,15 +238,7 @@ extern uint8_t s_bind_allowed; # define OUT_H_14DBUSY 6 #endif -inline uint8_t KEYS_PRESSED() -{ - uint8_t tin = ~PINL; - uint8_t in; - in = (tin & 0x0f) << 3; - in |= (tin & 0x30) >> 3; - return in; -} - +#define KEYS_PRESSED() (~PINL) // used only for DBLKEYS code. #define DBLKEYS_PRESSED_RGT_LFT(i) ((in & ((1<