Skip to content

Commit 5165ee2

Browse files
helmut64marcelstoer
authored andcommitted
Fixed a problem that long scrolling text did not work
1 parent ecd58e3 commit 5165ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OLEDDisplay.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ void OLEDDisplay::drawStringInternal(int16_t xMove, int16_t yMove, char* text, u
438438
uint8_t firstChar = pgm_read_byte(fontData + FIRST_CHAR_POS);
439439
uint16_t sizeOfJumpTable = pgm_read_byte(fontData + CHAR_NUM_POS) * JUMPTABLE_BYTES;
440440

441-
uint8_t cursorX = 0;
442-
uint8_t cursorY = 0;
441+
uint16_t cursorX = 0;
442+
uint16_t cursorY = 0;
443443

444444
switch (textAlignment) {
445445
case TEXT_ALIGN_CENTER_BOTH:

0 commit comments

Comments
 (0)