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<