feature/netman #1
@ -138,7 +138,7 @@ bool fetchPrintingStatus(Adafruit_SSD1306& display) {
|
||||
display.fillRect(0, 26, displayWidth, 11, BLACK);
|
||||
|
||||
// Check if it’s time to scroll based on the delay
|
||||
if(fileNameWidth > 22) {
|
||||
if(fileNameWidth > displayWidth) {
|
||||
if (millis() - lastScrollTime > scrollDelay) {
|
||||
// Update scroll position based on the current direction
|
||||
scrollPos += scrollDirection;
|
||||
|
Loading…
Reference in New Issue
Block a user