X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/f4ce05f33d3d5dcfbdd33a74a14c2ac23e379526..a091c966e5377c1dea045747d8478b734e5c66c9:/badge/main.c diff --git a/badge/main.c b/badge/main.c index 87927b9..466ae3e 100644 --- a/badge/main.c +++ b/badge/main.c @@ -186,7 +186,7 @@ void rbInit() { #endif -void usbmode(void) { +static void usbmode(void) { badge_event_stop(); badge_framebuffer fb = { { { 0 } } }; @@ -202,8 +202,9 @@ void usbmode(void) { for(;;); } -void scrolltest(void) { - badge_browse_textfile("/fahrplan/test.txt"); +static void fahrplan(void) { + f_chdir("/fahrplan"); + badge_browse_textfiles("fahrplan.lst"); } uint8_t main_menu_show(uint8_t selected) { @@ -233,7 +234,7 @@ void main_menu(void) { switch(selected) { case 0: badge_vanity_show(); break; case 1: jumpnrun_play (); break; - case 2: scrolltest (); break; + case 2: fahrplan (); break; case 3: usbmode (); break; } }