summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 66e42290c1..e4919fdcbd 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -195,22 +195,21 @@ void usb_screen(void)
else
#endif
{
+ char mode_name[MODE_NAME_LEN];
#ifdef HAVE_LCD_BITMAP
screens[i].transparent_bitmap(usblogo,
(LCD_WIDTH-BMPWIDTH_usblogo),
(LCD_HEIGHT-BMPHEIGHT_usblogo)/2,
BMPWIDTH_usblogo, BMPHEIGHT_usblogo);
#ifdef USB_ENABLE_HID
- char mode_name[MODE_NAME_LEN];
int w, h;
snprintf(mode_name, MODE_NAME_LEN, "%s",
str(keypad_mode_name_get()));
-
screens[i].getstringsize(mode_name, &w, &h);
screens[i].putsxy((LCD_WIDTH - w) / 2, BMPHEIGHT_usblogo +
(LCD_HEIGHT - BMPHEIGHT_usblogo + h) / 2, mode_name);
-#endif /* HID */
+#endif /* USB_ENABLE_HID */
#else /* HAVE_LCD_BITMAP */
screens[i].double_height(false);
#ifdef USB_ENABLE_HID
@@ -219,7 +218,7 @@ void usb_screen(void)
screens[i].puts_scroll(0, 0, mode_name);
#else
screens[i].puts_scroll(0, 0, "[USB Mode]");
-#endif
+#endif /* USB_ENABLE_HID */
status_set_param(false);
status_set_audio(false);
status_set_usb(true);