mirror of
https://github.com/sweetlilmre/tapuino.git
synced 2026-07-27 19:55:41 +00:00
Fixed 'command leakage' when playback was aborted which caused the menu to go up a dir.
Some minor cleanup of tabs and indentation
This commit is contained in:
@@ -92,10 +92,11 @@ void input_callback()
|
||||
static unsigned char ct0, ct1, rpt;
|
||||
unsigned char i;
|
||||
|
||||
#ifdef KEYS_INPUT_PULLUP // key changed ?
|
||||
i = key_state ^ ~KEYS_READ_PINS; // for internal pullup the reading is inverted
|
||||
// key changed ?
|
||||
#ifdef KEYS_INPUT_PULLUP
|
||||
i = key_state ^ ~KEYS_READ_PINS; // HW V2.0 for internal pullup the reading is inverted
|
||||
#else
|
||||
i = key_state ^ KEYS_READ_PINS;
|
||||
i = key_state ^ KEYS_READ_PINS; // HW V1.0 normal read
|
||||
#endif
|
||||
|
||||
ct0 = ~( ct0 & i ); // reset or count ct0
|
||||
|
||||
@@ -60,7 +60,8 @@
|
||||
#define CONTROL_SET_BUS0() CONTROL_PORT &= ~(_BV(CONTROL_PIN0) | _BV(CONTROL_PIN1))
|
||||
#define CONTROL_SET_BUS1() { CONTROL_PORT &= ~_BV(CONTROL_PIN1); CONTROL_PORT |= _BV(CONTROL_PIN0); }
|
||||
|
||||
//#define KEYS_INPUT_PULLUP // uncomment this line if you are using HW2.0
|
||||
// uncomment this line if you are using HW2.0
|
||||
//#define KEYS_INPUT_PULLUP
|
||||
#define KEYS_READ_PORT PORTC
|
||||
#define KEYS_READ_DDR DDRC
|
||||
#define KEYS_READ_PINS PINC
|
||||
|
||||
Reference in New Issue
Block a user