summaryrefslogtreecommitdiffstats
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/usb_screen.c8
-rw-r--r--apps/gui/usb_screen.h4
2 files changed, 5 insertions, 7 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c
index 527ae9fd15..a92ecac27f 100644
--- a/apps/gui/usb_screen.c
+++ b/apps/gui/usb_screen.c
@@ -112,13 +112,8 @@ static int handle_usb_events(void)
return 0;
}
-#endif
+#endif /* SIMULATOR */
-#ifdef USB_NONE
-void gui_usb_screen_run(void)
-{
-}
-#else
#define MODE_NAME_LEN 32
struct usb_screen_vps_t
@@ -315,5 +310,4 @@ void gui_usb_screen_run(void)
}
}
-#endif /* !defined(USB_NONE) */
diff --git a/apps/gui/usb_screen.h b/apps/gui/usb_screen.h
index deaca11aba..84d92d24ff 100644
--- a/apps/gui/usb_screen.h
+++ b/apps/gui/usb_screen.h
@@ -21,7 +21,11 @@
#ifndef _USB_SCREEN_H_
#define _USB_SCREEN_H_
+#ifdef USB_NONE
+static inline void gui_usb_screen_run(void) {}
+#else
extern void gui_usb_screen_run(void);
+#endif
#endif