Update 'stm-firmware/ui/lcd.c'
This commit is contained in:
parent
04389b1df6
commit
60602008d4
@ -31,6 +31,8 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#define LCD_CHAR_WIDTH 16
|
||||||
|
|
||||||
static void lcd_port_clear(void)
|
static void lcd_port_clear(void)
|
||||||
{
|
{
|
||||||
LCD_DPORT->ODR &= ~(LCD_E_MASK);
|
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);
|
lcd_fsm_enable(false);
|
||||||
ret = LCD_FSM_WAIT_CALL;
|
ret = LCD_FSM_WAIT_CALL;
|
||||||
char_cnt++;
|
char_cnt++;
|
||||||
if (char_cnt < 16) {
|
if (char_cnt < LCD_CHAR_WIDTH) {
|
||||||
state_cnt = 5;
|
state_cnt = 5;
|
||||||
} else {
|
} else {
|
||||||
state_cnt = 0;
|
state_cnt = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user