Skip to content

Commit 1ba8535

Browse files
authored
Merge pull request #1 from fourstix/fourstix-patch-1
Fixed a fence post error in the Display Custom Character function
2 parents 26d2571 + fb1a35f commit 1ba8535

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firmware/OpenLCD/OpenLCD.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ void updateDisplay()
262262
modeRecordCustomChar = true; //Change to this special mode
263263
}
264264

265-
//Display custom characters
266-
else if (incoming >= 35 && incoming <= 43)
265+
//Display custom characters, 8 characters allowed, 35 to 42 inclusive
266+
else if (incoming >= 35 && incoming <= 42)
267267
{
268268
SerLCD.write(byte(incoming - 35)); //You write location zero to display customer char 0
269269
}
@@ -438,4 +438,4 @@ void displayFrameBuffer(void)
438438

439439
//Return the cursor to its original position
440440
SerLCD.setCursor(characterCount % settingLCDwidth, characterCount / settingLCDwidth);
441-
}
441+
}

0 commit comments

Comments
 (0)