Skip to content

Commit da2239f

Browse files
authored
ESP8266 compiler compatibility update #361
1 parent f6dad6e commit da2239f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Extensions/Sprite.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,8 @@ int16_t TFT_eSprite::drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t fo
16791679
if ((font>2) && (font<9))
16801680
{
16811681
// This is slower than above but is more convenient for the RLE fonts
1682-
flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
1682+
// flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
1683+
flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
16831684
width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode );
16841685
height= pgm_read_byte( &fontdata[font].height );
16851686
}

0 commit comments

Comments
 (0)