chunkysteveo / OctoPrintAPI

Library for use with Arduino compatible micro controllers (web enabled) to access the Octoprint API on Raspberry Pi's running the Octoprint 3D printer web server by the brilliant Gina Häußge, aka @foosel.
GNU General Public License v2.0
42 stars 24 forks source link

values not reset with printer not operational #22

Closed fmatray closed 4 years ago

fmatray commented 4 years ago

Hello, When the printer is not operational, the function getPrinterStatistics() does not reset printerStats.printerStat and printerStats.printerTemp* values. At least printerStats.printerStateoperational should be false;

if(response == "Printer is not operational"){ String printerState = response; printerStats.printerState = printerState; return true; }

chunkysteveo commented 4 years ago

Now in new PR merge.