application: fix OLED text when disconnecting cable

This commit is contained in:
King Kévin 2020-01-03 14:40:00 +01:00
parent e1802fcc2f
commit ae951d8c12
1 changed files with 4 additions and 0 deletions

View File

@ -1497,6 +1497,10 @@ void main(void)
lcd_hd44780_clear_display(); // be sure the display is cleared
lcd_hd44780_write_line(false, lcd_default_line1, strlen(lcd_default_line1));
lcd_hd44780_write_line(true, lcd_default_line2, strlen(lcd_default_line2));
oled_text_clear();
oled_text_line(lcd_default_line1, 0);
oled_text_line(lcd_default_line2, 1);
oled_text_update();
cable_clear(cable_current); // clear definition
}
goto test_end;