[Taranis] Splash on SD fix. Still not tested.

This commit is contained in:
bsongis@gmail.com
2013-07-04 21:21:40 +00:00
parent b362bc7f9d
commit a19970c0ca
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,10 +41,10 @@ const pm_char * bmpLoad(uint8_t *dest, const char *filename, const xcoord_t widt
FIL bmpFile;
UINT read;
uint8_t palette[16];
uint8_t bmpBuf[64]; /* maximum with 64px */
uint8_t bmpBuf[LCD_W]; /* maximum with LCD_W */
uint8_t *buf = &bmpBuf[0];
assert(width <= 64);
assert(width <= LCD_W);
FRESULT result = f_open(&bmpFile, filename, FA_OPEN_EXISTING | FA_READ);
if (result != FR_OK) {