Added "USB plugged" screen

This commit is contained in:
Raphael Coeffic
2021-05-09 15:56:19 +02:00
parent cc5ae4d2a9
commit 728ed13c7e
4 changed files with 25 additions and 1 deletions
+5 -1
View File
@@ -474,7 +474,11 @@ void perMain()
#if defined(STM32)
if (usbPlugged() && getSelectedUsbMode() == USB_MASS_STORAGE_MODE) {
#if defined(LIBOPENUI)
#warning "TODO USB plugged view"
// draw some image showing USB
lcdNextLayer();
lcd->reset();
OpenTxTheme::instance()->drawUsbPluggedScreen(lcd);
lcdRefresh();
#else
// disable access to menus
lcdClear();