Combine Travis CI option-setting commands (#12474)

This commit is contained in:
Scott Lahteine
2018-11-18 19:58:02 -06:00
committed by GitHub
parent 9d13f07d09
commit 826d570162
20 changed files with 118 additions and 131 deletions

View File

@ -243,7 +243,7 @@ void MarlinUI::goto_screen(screenFunc_t screen, const uint32_t encoder/*=0*/) {
#if ENABLED(AUTO_BED_LEVELING_UBL)
if (!ubl.lcd_map_control)
#endif
LCD_SET_CHARSET(screen == status_screen ? CHARSET_INFO : CHARSET_MENU);
set_custom_characters(screen == status_screen ? CHARSET_INFO : CHARSET_MENU);
#endif
refresh(LCDVIEW_CALL_REDRAW_NEXT);

View File

@ -52,11 +52,13 @@ static void lcd_factory_settings() {
#if ENABLED(LCD_PROGRESS_BAR_TEST)
#include "../lcdprint.h"
static void progress_bar_test() {
static int8_t bar_percent = 0;
if (ui.use_click()) {
ui.goto_previous_screen();
LCD_SET_CHARSET(CHARSET_MENU);
ui.set_custom_characters(CHARSET_MENU);
return;
}
bar_percent += (int8_t)ui.encoderPosition;
@ -65,12 +67,12 @@ static void lcd_factory_settings() {
draw_menu_item_static(0, PSTR(MSG_PROGRESS_BAR_TEST), true, true);
lcd_moveto((LCD_WIDTH) / 2 - 2, LCD_HEIGHT - 2);
lcd_put_u8str(int(bar_percent)); lcd_put_wchar('%');
lcd_moveto(0, LCD_HEIGHT - 1); lcd_draw_progress_bar(bar_percent);
lcd_moveto(0, LCD_HEIGHT - 1); ui.draw_progress_bar(bar_percent);
}
void _progress_bar_test() {
ui.goto_screen(progress_bar_test);
LCD_SET_CHARSET(CHARSET_INFO);
ui.set_custom_characters(CHARSET_INFO);
}
#endif // LCD_PROGRESS_BAR_TEST