From d5d1f76a0b8fb1603f509e1296e9a29bf5dfa879 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 29 Oct 2018 09:29:55 +0100 Subject: multiplexer.c: cleanup --- multiplexer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'multiplexer.c') diff --git a/multiplexer.c b/multiplexer.c index 52c7af1..641e2ce 100644 --- a/multiplexer.c +++ b/multiplexer.c @@ -73,10 +73,10 @@ void *put_on_display(void *param) for (line=0; line<7; line++) { #ifdef SKIP_GPIO for (column=0; column<40; column++) { - if ((*(display_data -> buf[display_data -> is_buf] + column)>>line) & 0x01) + if (display_data -> buf[display_data -> is_buf][column] & (0x01 << line)) printf("X"); else - printf("."); + printf(" "); #else GPIO_CLR = 1<=0; column--) { GPIO_CLR = 1< buf[display_data -> is_buf] + column)>>line) & 0x01) = 1< buf[display_data -> is_buf][column] & (0x01 << line)) = 1<