From b35c334322d9cfaa70cb6e2cfda2f1387d0e7486 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Tue, 11 Jan 2022 01:23:23 +0100 Subject: [PATCH] Switch display firmware back to CAN mode --- display/firmware/button.c | 2 +- display/firmware/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/display/firmware/button.c b/display/firmware/button.c index b46eb4d..bbcedff 100644 --- a/display/firmware/button.c +++ b/display/firmware/button.c @@ -11,7 +11,7 @@ // BUTTON7 PC1 void button_init() { - // PD0, PD1, PD5, PD6, PD7, PC0, PC1: input, no pullup (button0..6,7) + // PD0, PD1, PD5, PD6, PD7, PC0, PC1: input, no pullup (button0..5,7) PORTD &= ~(_BV(PD0) | _BV(PD1) | _BV(PD5) | _BV(PD6) | _BV(PD7)); DDRD &= ~(_BV(PD0) | _BV(PD1) | _BV(PD5) | _BV(PD6) | _BV(PD7)); PORTC &= ~(_BV(PC0) | _BV(PC1)); diff --git a/display/firmware/main.c b/display/firmware/main.c index 7b0d561..6cdd274 100644 --- a/display/firmware/main.c +++ b/display/firmware/main.c @@ -236,7 +236,7 @@ static void test2() { int main() { init(); while (1) { - //loop(); - test(); + loop(); + //test(); } }