Skip to content

Commit

Permalink
Now points to the const uint8_t* version
Browse files Browse the repository at this point in the history
Instead of duplication functionality. Because setFont might do more. In fact: it does for in my print fixes: it resets the logBuffer for new number of lines/chars.
  • Loading branch information
ropg committed Mar 14, 2024
1 parent ca6f02d commit 9ebae42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OLEDDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ void OLEDDisplay::setFont(const uint8_t *fontData) {
}

void OLEDDisplay::setFont(const char *fontData) {
this->fontData = static_cast<const uint8_t*>(reinterpret_cast<const void*>(fontData));
setFont(static_cast<const uint8_t*>(reinterpret_cast<const void*>(fontData)));
}

void OLEDDisplay::displayOn(void) {
Expand Down

0 comments on commit 9ebae42

Please sign in to comment.