Fahrplan-Browser.
[hackover2013-badge-firmware.git] / badge / ui / font.c
index 8ac8169..01fc1c3 100644 (file)
@@ -24,7 +24,7 @@ static FRESULT open_font_file(FIL *fd) {
   *fd = fopen("../sprites/font.dat", "r");
   return fd ? 0 : -1;
 #else
-  return f_open(fd, "font.dat", FA_OPEN_EXISTING | FA_READ);
+  return f_open(fd, "/font.dat", FA_OPEN_EXISTING | FA_READ);
 #endif
 }
 
@@ -80,7 +80,7 @@ uint8_t badge_framebuffer_render_text(badge_framebuffer *fb, int8_t pos_x, int8_
 }
 
 static uint8_t badge_framebuffer_render_number_with_fd(badge_framebuffer *fb, int8_t *pos_x, int8_t pos_y, uint8_t number, FIL *fd) {
-  if(number > 10) {
+  if(number >= 10) {
     badge_framebuffer_render_number_with_fd(fb, pos_x, pos_y, number / 10, fd);
   }
 
This page took 0.023889 seconds and 4 git commands to generate.