simulator: support usb_inserted %bu tag (FS#13843)

Change-Id: Ia236c51f338bd333795f17991eb9e3659e722c6c
This commit is contained in:
Christian Soffke 2026-05-19 17:47:39 +02:00 committed by Solomon Peachy
parent 29d62e933f
commit aae46a822a
2 changed files with 5 additions and 7 deletions

View file

@ -195,6 +195,11 @@ int usb_detect(void)
return is_usb_inserted ? USB_INSERTED : USB_EXTRACTED;
}
bool usb_inserted(void)
{
return is_usb_inserted;
}
void usb_init(void)
{
}

View file

@ -203,13 +203,6 @@ bool usb_charging_enable(bool on)
}
#endif
#ifndef USB_NONE
bool usb_inserted(void)
{
return false;
}
#endif
#ifdef HAVE_REMOTE_LCD_TICKING
void lcd_remote_emireduce(bool state)
{