fw: Fix rotary input

Accidentally disabled pull-ups instead of enabling them.
This commit is contained in:
Markus Koch 2020-08-08 17:27:49 +02:00
parent c4c6446d16
commit 8fec7fbc8b

View File

@ -10,7 +10,7 @@ static volatile uint8_t sw_event = 0;
void input_init()
{
PORT_ROTARY(DDR) &= ~(PIN_ROTARY_A | PIN_ROTARY_B); // Configure as input
PORT_ROTARY(PORT) &= ~(PIN_ROTARY_A | PIN_ROTARY_B); // Set pullups
PORT_ROTARY(PORT) |= (PIN_ROTARY_A | PIN_ROTARY_B); // Set pullups
PORT_KEYPAD(DDR) &= ~(PIN_KEYPAD_MASK); // Key inputs
PORT_KEYPAD(PORT) |= PIN_KEYPAD_MASK; // Key pullups