Skip to content

Commit d82be86

Browse files
authored
Merge pull request #2305 from jepler/sdfat-speculative-fix
speculative fix for example build failure
2 parents bbef0a9 + f4fd85d commit d82be86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Mini_GIF_Players/Mini_GIF_Players.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ FatFileSystem fatfs;
5757

5858
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
5959
AnimatedGIF gif;
60-
File f, root;
60+
File32 f, root;
6161

6262
void * GIFOpenFile(const char *fname, int32_t *pSize)
6363
{
@@ -72,7 +72,7 @@ void * GIFOpenFile(const char *fname, int32_t *pSize)
7272

7373
void GIFCloseFile(void *pHandle)
7474
{
75-
File *f = static_cast<File *>(pHandle);
75+
File32 *f = static_cast<File32 *>(pHandle);
7676
if (f != NULL)
7777
f->close();
7878
} /* GIFCloseFile() */
@@ -81,7 +81,7 @@ int32_t GIFReadFile(GIFFILE *pFile, uint8_t *pBuf, int32_t iLen)
8181
{
8282
int32_t iBytesRead;
8383
iBytesRead = iLen;
84-
File *f = static_cast<File *>(pFile->fHandle);
84+
File32 *f = static_cast<File32 *>(pFile->fHandle);
8585
// Note: If you read a file all the way to the last byte, seek() stops working
8686
if ((pFile->iSize - pFile->iPos) < iLen)
8787
iBytesRead = pFile->iSize - pFile->iPos - 1; // <-- ugly work-around
@@ -95,7 +95,7 @@ int32_t GIFReadFile(GIFFILE *pFile, uint8_t *pBuf, int32_t iLen)
9595
int32_t GIFSeekFile(GIFFILE *pFile, int32_t iPosition)
9696
{
9797
int i = micros();
98-
File *f = static_cast<File *>(pFile->fHandle);
98+
File32 *f = static_cast<File32 *>(pFile->fHandle);
9999
f->seek(iPosition);
100100
pFile->iPos = (int32_t)f->position();
101101
i = micros() - i;

0 commit comments

Comments
 (0)