Skip to content

Commit 14fd8ab

Browse files
Laurence BankLaurence Bank
authored andcommitted
disabled change for AVR targets
1 parent 9ac47e8 commit 14fd8ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Adafruit_GFX.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,7 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
11771177
c++; // Handle 'classic' charset behavior
11781178

11791179
startWrite();
1180+
#ifndef __AVR__
11801181
if (color != bg) { // faster opaque text
11811182
setAddrWindow(x, y, 5*size_x, 7*size_y);
11821183
for (int8_t j = 0; j < 7; j++) { // 7 lines
@@ -1188,7 +1189,9 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
11881189
} // for each column
11891190
} // repeat for each line of size_y
11901191
} // for j
1191-
} else { // slower text which doesn't overwrite the background color
1192+
} else
1193+
#endif // __AVR__
1194+
{ // slower text which doesn't overwrite the background color
11921195
for (int8_t i = 0; i < 5; i++) { // Char bitmap = 5 columns
11931196
uint8_t line = pgm_read_byte(&font[c * 5 + i]);
11941197
for (int8_t j = 0; j < 8; j++, line >>= 1) {

0 commit comments

Comments
 (0)