summaryrefslogtreecommitdiff
path: root/bootloader/creativezvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/creativezvm.c')
-rw-r--r--bootloader/creativezvm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootloader/creativezvm.c b/bootloader/creativezvm.c
index 403a8bbdc4..b4c4f206d0 100644
--- a/bootloader/creativezvm.c
+++ b/bootloader/creativezvm.c
@@ -28,6 +28,7 @@
28#include "backlight.h" 28#include "backlight.h"
29#include "button.h" 29#include "button.h"
30#include "common.h" 30#include "common.h"
31#include "usb.h"
31 32
32 33
33static void load_fw(unsigned char* ptr, unsigned int len) 34static void load_fw(unsigned char* ptr, unsigned int len)
@@ -57,6 +58,7 @@ void main(void)
57 lcd_init(); 58 lcd_init();
58 font_init(); 59 font_init();
59 button_init(); 60 button_init();
61 usb_init();
60 62
61 lcd_enable(true); 63 lcd_enable(true);
62 lcd_setfont(FONT_SYSFIXED); 64 lcd_setfont(FONT_SYSFIXED);
@@ -67,7 +69,7 @@ void main(void)
67 ret = storage_init(); 69 ret = storage_init();
68 if(ret) 70 if(ret)
69 printf("ATA error: %d", ret); 71 printf("ATA error: %d", ret);
70 72
71 /* If no button is held, start the OF */ 73 /* If no button is held, start the OF */
72 if(button_read_device() == 0) 74 if(button_read_device() == 0)
73 { 75 {
@@ -110,5 +112,7 @@ void main(void)
110 } 112 }
111 } 113 }
112 114
115 storage_sleepnow();
116
113 while(1); 117 while(1);
114} 118}