Skip to content

Commit ecd58e3

Browse files
helmut64marcelstoer
authored andcommitted
Fixed a problem that Umlauts where not working in the default FontTableLookup
1 parent 8e52bb1 commit ecd58e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/OLEDDisplay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ void OLEDDisplay::setFontTableLookupFunction(FontTableLookupFunction function) {
965965
}
966966

967967

968-
char DefaultFontTableLookup(const char ch) {
968+
char DefaultFontTableLookup(const uint8_t ch) {
969969
// UTF-8 to font table index converter
970970
// Code form http://playground.arduino.cc/Main/Utf8ascii
971971
static uint8_t LASTCHAR;

src/OLEDDisplay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ enum OLEDDISPLAY_GEOMETRY {
141141
GEOMETRY_RAWMODE,
142142
};
143143

144-
typedef char (*FontTableLookupFunction)(const char ch);
145-
char DefaultFontTableLookup(const char ch);
144+
typedef char (*FontTableLookupFunction)(const uint8_t ch);
145+
char DefaultFontTableLookup(const uint8_t ch);
146146

147147

148148
#ifdef ARDUINO

0 commit comments

Comments
 (0)