1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-25 13:41:23 +01:00

Update comments

This commit is contained in:
Neil McKechnie 2021-02-19 10:46:58 +00:00
parent 2cf17fa143
commit 5e9fb046ab

View File

@ -60,14 +60,14 @@ LCDDisplay *LCDDisplay::loop2(bool force)
do { do {
if (bptr == 0) { if (bptr == 0) {
// No pending write, so go and look for one. // Find a line of data to write to the screen.
if (!done) { if (!done) {
if (rowFirst < 0) rowFirst = rowNext; if (rowFirst < 0) rowFirst = rowNext;
// Skip blank rows // Skip blank rows
while (rowBuffer[rowNext][0] == 0) { while (rowBuffer[rowNext][0] == 0) {
rowNext = (rowNext + 1) % MAX_LCD_ROWS; rowNext = (rowNext + 1) % MAX_LCD_ROWS;
if (rowNext == rowFirst) { if (rowNext == rowFirst) {
done = true; done = true; // All lines done
break; break;
} }
} }
@ -104,7 +104,7 @@ LCDDisplay *LCDDisplay::loop2(bool force)
} }
if (slot >= lcdRows) { if (slot >= lcdRows) {
// Last slot done, reset ready for next update. // Last slot finished, reset ready for next update.
slot = 0; slot = 0;
done = false; done = false;
rowFirst = -1; rowFirst = -1;