Skip to content

Commit

Permalink
ESP8266 compiler compatibility update #361
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer authored May 20, 2019
1 parent f6dad6e commit da2239f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extensions/Sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,8 @@ int16_t TFT_eSprite::drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t fo
if ((font>2) && (font<9))
{
// This is slower than above but is more convenient for the RLE fonts
flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
// flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode );
height= pgm_read_byte( &fontdata[font].height );
}
Expand Down

0 comments on commit da2239f

Please sign in to comment.