X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/55ca7f945dc0d4a8d11101465fc16c3ce41cc964..c8028bb0e1137541373f46638370b96f02924e32:/badge/ui/font.c diff --git a/badge/ui/font.c b/badge/ui/font.c index 8ac8169..01fc1c3 100644 --- a/badge/ui/font.c +++ b/badge/ui/font.c @@ -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); }