Skip to content

Commit 97ed48e

Browse files
authored
Merge pull request #158 from nlesc-recruit/156-fix-writeFastChar
Avoid writing to display with uninitialized data
2 parents 395d08e + 8d78538 commit 97ed48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

device/PowerSensor/Adafruit_ST7735_DMA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void Adafruit_ST7735_DMA::writeFastChar(int16_t x, int16_t y, unsigned char c,
7070
break;
7171
default:
7272
// other font sizes not supported
73-
break;
73+
return;
7474
}
7575

7676
setAddrWindow(x, y, FONT_NCOL * size, FONT_NROW * size);

0 commit comments

Comments
 (0)