summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/cube.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/recorder/cube.c b/apps/recorder/cube.c
index cacdca26d4..fddd294773 100644
--- a/apps/recorder/cube.c
+++ b/apps/recorder/cube.c
@@ -30,6 +30,7 @@
30#include "menu.h" 30#include "menu.h"
31#include "button.h" 31#include "button.h"
32#include "sprintf.h" 32#include "sprintf.h"
33#include "screens.h"
33 34
34typedef struct 35typedef struct
35{long x,y,z;} point3D; 36{long x,y,z;} point3D;
@@ -318,9 +319,14 @@ bool cube(void)
318 case BUTTON_OFF|BUTTON_REL: 319 case BUTTON_OFF|BUTTON_REL:
319 exit=1; 320 exit=1;
320 break; 321 break;
322
323 case SYS_USB_CONNECTED:
324 usb_screen();
325 return true;
326
321 } 327 }
322 } 328 }
323 return 1; 329 return false;
324} 330}
325 331
326#endif /* USE_DEMOS */ 332#endif /* USE_DEMOS */