mirror of
https://github.com/sweetlilmre/tapuino.git
synced 2026-07-28 04:05:49 +00:00
fixed config-user.h.example for USE_ROTARY_ENCODER define
removed illogical test in comms.c
This commit is contained in:
@@ -101,7 +101,7 @@ void input_callback()
|
||||
unsigned char i;
|
||||
|
||||
// key changed ?
|
||||
#if defined(KEYS_INPUT_PULLUP) || defined(USE_ROTARY_ENCODER)
|
||||
#ifdef KEYS_INPUT_PULLUP
|
||||
i = key_state ^ ~KEYS_READ_PINS; // HW V2.0 for internal pullup the read is inverted
|
||||
#else
|
||||
i = key_state ^ KEYS_READ_PINS; // HW V1.0 normal read
|
||||
|
||||
@@ -30,4 +30,4 @@
|
||||
|
||||
// uncomment this to use a rotary encoder
|
||||
|
||||
// USE_ROTARY_ENCODER
|
||||
// #define USE_ROTARY_ENCODER
|
||||
|
||||
Reference in New Issue
Block a user