Update 'stm-firmware/ui/lcd.c'
This commit is contained in:
		@@ -31,6 +31,8 @@
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
#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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user