mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 21:21:24 +01:00
Update comments
This commit is contained in:
parent
2cf17fa143
commit
5e9fb046ab
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user