USB fix red for device without HAVE_USB_POWER again.
Change-Id: I3122d532cbb8d5b5cb9040f08707c1514bc1b18e
This commit is contained in:
parent
d72a0ed65d
commit
684565b8f3
2 changed files with 2 additions and 2 deletions
|
@ -478,7 +478,7 @@ static void NORETURN_ATTR usb_thread(void)
|
||||||
usb_stack_enable(true);
|
usb_stack_enable(true);
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
#ifndef HAVE_USB_POWER
|
#ifndef HAVE_USB_POWER
|
||||||
int usb_mode = USBMODE_DEFAULT;
|
int usb_mode = -1;
|
||||||
#endif
|
#endif
|
||||||
send_event(SYS_EVENT_USB_INSERTED, &usb_mode);
|
send_event(SYS_EVENT_USB_INSERTED, &usb_mode);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -145,7 +145,7 @@ void sim_trigger_screendump(void)
|
||||||
static bool is_usb_inserted;
|
static bool is_usb_inserted;
|
||||||
void sim_trigger_usb(bool inserted)
|
void sim_trigger_usb(bool inserted)
|
||||||
{
|
{
|
||||||
int usbmode = USBMODE_DEFAULT;
|
int usbmode = -1;
|
||||||
if (inserted)
|
if (inserted)
|
||||||
{
|
{
|
||||||
send_event(SYS_EVENT_USB_INSERTED, &usbmode);
|
send_event(SYS_EVENT_USB_INSERTED, &usbmode);
|
||||||
|
|
Loading…
Reference in a new issue