Skip to content

Commit ae6e239

Browse files
committed
Fix for the stm32plus::display::Font class. getCharacter() method ignores the last character code when searching for the character definition. It results in returning the first definition instead as a fallback.
1 parent 0c183ac commit ae6e239

File tree

1 file changed

+1
-1
lines changed
  • lib/include/display/graphic

1 file changed

+1
-1
lines changed

lib/include/display/graphic/Font.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace stm32plus {
7676

7777
ptr=nullptr;
7878

79-
if(character>=_firstCharacter && character<_lastCharacter) {
79+
if(character>=_firstCharacter && character<=_lastCharacter) {
8080

8181
// the character is in range and indexable, is it in sequential place?
8282

0 commit comments

Comments
 (0)