diff options
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 8443ffed3a..aca2683d58 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -817,13 +817,6 @@ int usb_release_exclusive_storage(void) | |||
817 | return bccount; | 817 | return bccount; |
818 | } | 818 | } |
819 | 819 | ||
820 | #ifdef HAVE_USB_POWER | ||
821 | bool usb_powered_only(void) | ||
822 | { | ||
823 | return usb_state == USB_POWERED; | ||
824 | } | ||
825 | #endif /* HAVE_USB_POWER */ | ||
826 | |||
827 | #ifdef USB_ENABLE_HID | 820 | #ifdef USB_ENABLE_HID |
828 | void usb_set_hid(bool enable) | 821 | void usb_set_hid(bool enable) |
829 | { | 822 | { |
@@ -832,6 +825,13 @@ void usb_set_hid(bool enable) | |||
832 | } | 825 | } |
833 | #endif /* USB_ENABLE_HID */ | 826 | #endif /* USB_ENABLE_HID */ |
834 | 827 | ||
828 | #ifdef HAVE_USB_POWER | ||
829 | bool usb_powered_only(void) | ||
830 | { | ||
831 | return usb_state == USB_POWERED; | ||
832 | } | ||
833 | #endif /* HAVE_USB_POWER */ | ||
834 | |||
835 | #elif defined(USB_NONE) | 835 | #elif defined(USB_NONE) |
836 | /* Dummy functions for USB_NONE */ | 836 | /* Dummy functions for USB_NONE */ |
837 | 837 | ||