mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31013 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b488949e3d
commit
abf1e6d790
1 changed files with 1 additions and 1 deletions
|
@ -308,13 +308,13 @@ void gui_message_loop(void)
|
||||||
static void button_event(int key, bool pressed)
|
static void button_event(int key, bool pressed)
|
||||||
{
|
{
|
||||||
int new_btn = 0;
|
int new_btn = 0;
|
||||||
static bool usb_connected = false;
|
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
#ifdef SIMULATOR
|
#ifdef SIMULATOR
|
||||||
case USB_KEY:
|
case USB_KEY:
|
||||||
if (!pressed)
|
if (!pressed)
|
||||||
{
|
{
|
||||||
|
static bool usb_connected = false;
|
||||||
usb_connected = !usb_connected;
|
usb_connected = !usb_connected;
|
||||||
sim_trigger_usb(usb_connected);
|
sim_trigger_usb(usb_connected);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue