lcd_print_custom(): limit searching to lcd_custom_index

This commit is contained in:
Alex Voinea 2023-01-24 12:28:35 +01:00
parent 7e0ab44d09
commit 60494b20e8
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ const CustomCharacter Font[] PROGMEM = {
static void lcd_print_custom(uint8_t c) {
uint8_t charToSend;
// check if we already have the character in the lcd memory
for (uint8_t i = 0; i < 8; i++) {
for (uint8_t i = 0; i < lcd_custom_index; i++) {
if (lcd_custom_characters[i] == c) {
// send the found custom character id
charToSend = i;