Add about command to menu and restructure code. Delete preliminary code from mainloop. Better code will follow
This commit is contained in:
		@@ -393,7 +393,7 @@ enum lcd_fsm_ret lcd_fsm_write_buffer(const char (*display_buffer)[21])
 | 
			
		||||
			state_cnt++;
 | 
			
		||||
			break;
 | 
			
		||||
		case 4:
 | 
			
		||||
			if (!systick_ticks_have_passed(timestamp, 5)) {
 | 
			
		||||
			if (!systick_ticks_have_passed(timestamp, 4)) {
 | 
			
		||||
				ret = LCD_FSM_WAIT_CALL;
 | 
			
		||||
			} else {
 | 
			
		||||
				ret = LCD_FSM_WAIT_CALL;
 | 
			
		||||
 
 | 
			
		||||
@@ -174,6 +174,24 @@ void menu_list_scroll_down(struct menu_list *list)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void menu_list_enter_selected_entry(struct menu_list *list, struct lcd_menu *menu)
 | 
			
		||||
{
 | 
			
		||||
	menu_func_t entry;
 | 
			
		||||
 | 
			
		||||
	if (!list)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (!list->submenu_list)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	entry = list->submenu_list[list->currently_selected];
 | 
			
		||||
 | 
			
		||||
	if (!entry)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	menu_entry_enter(menu, entry, false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void menu_list_scroll_up(struct menu_list *list)
 | 
			
		||||
{
 | 
			
		||||
	if (!list)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user