diff --git a/stm-firmware/ui/lcd.c b/stm-firmware/ui/lcd.c index a4e4f76..bbacbd1 100644 --- a/stm-firmware/ui/lcd.c +++ b/stm-firmware/ui/lcd.c @@ -31,6 +31,8 @@ #include #include +#define LCD_CHAR_WIDTH 16 + static void lcd_port_clear(void) { LCD_DPORT->ODR &= ~(LCD_E_MASK); @@ -421,7 +423,7 @@ enum lcd_fsm_ret lcd_fsm_write_buffer(const char (*display_buffer)[21]) lcd_fsm_enable(false); ret = LCD_FSM_WAIT_CALL; char_cnt++; - if (char_cnt < 16) { + if (char_cnt < LCD_CHAR_WIDTH) { state_cnt = 5; } else { state_cnt = 0;