diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/usb_screen.c | 8 | ||||
-rw-r--r-- | apps/gui/usb_screen.h | 4 |
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) | |||
112 | 112 | ||
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |
115 | #endif | 115 | #endif /* SIMULATOR */ |
116 | 116 | ||
117 | #ifdef USB_NONE | ||
118 | void gui_usb_screen_run(void) | ||
119 | { | ||
120 | } | ||
121 | #else | ||
122 | #define MODE_NAME_LEN 32 | 117 | #define MODE_NAME_LEN 32 |
123 | 118 | ||
124 | struct usb_screen_vps_t | 119 | struct usb_screen_vps_t |
@@ -315,5 +310,4 @@ void gui_usb_screen_run(void) | |||
315 | } | 310 | } |
316 | 311 | ||
317 | } | 312 | } |
318 | #endif /* !defined(USB_NONE) */ | ||
319 | 313 | ||
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 @@ | |||
21 | #ifndef _USB_SCREEN_H_ | 21 | #ifndef _USB_SCREEN_H_ |
22 | #define _USB_SCREEN_H_ | 22 | #define _USB_SCREEN_H_ |
23 | 23 | ||
24 | #ifdef USB_NONE | ||
25 | static inline void gui_usb_screen_run(void) {} | ||
26 | #else | ||
24 | extern void gui_usb_screen_run(void); | 27 | extern void gui_usb_screen_run(void); |
28 | #endif | ||
25 | 29 | ||
26 | #endif | 30 | #endif |
27 | 31 | ||