diff options
Diffstat (limited to 'display_sim.c')
-rw-r--r-- | display_sim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/display_sim.c b/display_sim.c index b17979f..288118f 100644 --- a/display_sim.c +++ b/display_sim.c @@ -52,6 +52,7 @@ static void uart_init(void) static int uart_putc(char c, FILE *unused) { + (void)unused; UDRx = c; loop_until_bit_is_set(UCSRxA, UDREx); return 1; @@ -64,7 +65,6 @@ static FILE uart_out = FDEV_SETUP_STREAM(uart_putc, NULL, _FDEV_SETUP_WRITE); * is no background thread for doing this constantly */ void display_display(void) { - int x = 0; int y = 0; printf("\033[6A"); // hack: raw ANSI escape sequence to move up 6 printf(",--------------------.\n"); @@ -99,7 +99,6 @@ void display_init(void) void display_write(const char *text) { - size_t text_x = 0; char c = '\0'; while (cursor_x < LCD_WIDTH && *text) { c = *(text++); |