summaryrefslogtreecommitdiffstats
path: root/apps/recorder/wormlet.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/wormlet.c')
-rw-r--r--apps/recorder/wormlet.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/recorder/wormlet.c b/apps/recorder/wormlet.c
index acebbad8bf..0edd550966 100644
--- a/apps/recorder/wormlet.c
+++ b/apps/recorder/wormlet.c
@@ -34,6 +34,7 @@
#include "menu.h"
#include "rtc.h"
#include "lang.h"
+#include "screens.h"
/* size of the field the worm lives in */
#define FIELD_RECT_X 1
@@ -1888,7 +1889,7 @@ extern bool use_old_rect;
/**
* Main entry point from the menu to start the game control.
*/
-Menu wormlet(void)
+bool wormlet(void)
{
bool wormDead = false;
int button;
@@ -1974,6 +1975,10 @@ Menu wormlet(void)
use_remote = true;
}
break;
+
+ case SYS_USB_CONNECTED:
+ usb_screen();
+ return true;
}
} while (button != BUTTON_PLAY &&
button != BUTTON_OFF && button != BUTTON_ON);
@@ -2007,7 +2012,7 @@ Menu wormlet(void)
}
while (button != BUTTON_OFF);
- return MENU_OK;
+ return false;
}