summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index e20388c073..f97cc75ffe 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -56,9 +56,7 @@
56#define USB_FULL_INIT 56#define USB_FULL_INIT
57#endif 57#endif
58 58
59#ifdef HAVE_LCD_BITMAP
60bool do_screendump_instead_of_usb = false; 59bool do_screendump_instead_of_usb = false;
61#endif
62 60
63#if !defined(SIMULATOR) && !defined(USB_NONE) 61#if !defined(SIMULATOR) && !defined(USB_NONE)
64 62
@@ -116,7 +114,6 @@ static void try_reboot(void)
116#endif /* USB_FIRWIRE_HANDLING */ 114#endif /* USB_FIRWIRE_HANDLING */
117 115
118/* Screen dump */ 116/* Screen dump */
119#ifdef HAVE_LCD_BITMAP
120static inline bool usb_do_screendump(void) 117static inline bool usb_do_screendump(void)
121{ 118{
122 if(do_screendump_instead_of_usb) 119 if(do_screendump_instead_of_usb)
@@ -129,7 +126,6 @@ static inline bool usb_do_screendump(void)
129 } 126 }
130 return false; 127 return false;
131} 128}
132#endif /* HAVE_LCD_BITMAP */
133 129
134/* Power (charging-only) button */ 130/* Power (charging-only) button */
135static inline void usb_detect_charging_only(bool detect) 131static inline void usb_detect_charging_only(bool detect)
@@ -458,13 +454,11 @@ static void NORETURN_ATTR usb_thread(void)
458 if(usb_state != USB_EXTRACTED) 454 if(usb_state != USB_EXTRACTED)
459 break; 455 break;
460 456
461#ifdef HAVE_LCD_BITMAP
462 if(usb_do_screendump()) 457 if(usb_do_screendump())
463 { 458 {
464 usb_state = USB_SCREENDUMP; 459 usb_state = USB_SCREENDUMP;
465 break; 460 break;
466 } 461 }
467#endif
468 462
469 usb_state = USB_POWERED; 463 usb_state = USB_POWERED;
470 usb_stack_enable(true); 464 usb_stack_enable(true);