diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp index 0c96567cac8a7b421eb8dca742ce3492ea0f55a0..5ebb433200b5aa565c20f9e0dc9ed224de7e61b5 100644 --- a/OLEDDisplay.cpp +++ b/OLEDDisplay.cpp @@ -362,7 +362,7 @@ void OLEDDisplay::drawStringInternal(int16_t xMove, int16_t yMove, char* text, u byte currentCharWidth = pgm_read_byte( fontData + JUMPTABLE_START + charCode * JUMPTABLE_BYTES + JUMPTABLE_WIDTH); // Width // Test if the char is drawable - if (msbJumpToChar != 255 && lsbJumpToChar != 255) { + if (!(msbJumpToChar == 255 && lsbJumpToChar == 255)) { // Get the position of the char data uint16_t charDataPosition = JUMPTABLE_START + sizeOfJumpTable + ((msbJumpToChar << 8) + lsbJumpToChar); drawInternal(xPos, yPos, currentCharWidth, textHeight, fontData, charDataPosition, charByteSize);