ESP8266 compiler compatibility update #361

This commit is contained in:
Bodmer
2019-05-19 10:29:21 +01:00
committed by GitHub
parent 0a1aadfd5a
commit f6dad6e4ab

View File

@@ -4270,7 +4270,8 @@ int16_t TFT_eSPI::drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t font)
{ {
if ((font>2) && (font<9)) if ((font>2) && (font<9))
{ {
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 ); width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode );
height= pgm_read_byte( &fontdata[font].height ); height= pgm_read_byte( &fontdata[font].height );
} }