Qrome / printer-monitor

OctoPrint 3D Printer Monitor using Wemos D1 Mini ESP8266
MIT License
477 stars 164 forks source link

The display repeats: "Printer Online \ nWake up ... , Printer Offline \ nSleep Mode ... #131

Open Fredy-1 opened 3 years ago

Fredy-1 commented 3 years ago

Hi Qrome!

The display repeats: "Printer Online \ nWake up ..., Printer Offline \ nSleep Mode ... if in webserver "Display Clock when printer is off" is diabled. (and printer is online)

The problem is probably caused by the following line: if (displayOn && !printerClient.isPrinting() && !DISPLAYCLOCK) { instead of this line I think it should: if (displayOn && !printerClient.isOperational() && !DISPLAYCLOCK) {

Please check if you have time.

https://github.com/Qrome/printer-monitor/blob/a9a0348efb3e7e457909d63ee2fc6c119982b6ad/printermonitor/printermonitor.ino#L1294