From 72f3fa6eda99121169b279d79ec28ef936996902 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Tue, 10 Jan 2017 23:36:55 -0800 Subject: [PATCH] Changed old comments to not claim a method does more than it really does, because comments are there to clear up confusion, might as well start here. poll_temperature and poll_sd_status are called by a RepeatedTimer now, the methods don't re-enqueue themselves. --- src/octoprint/util/comm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 71cc3fd5..fb1e1118 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1545,7 +1545,7 @@ class MachineCom(object): def _poll_temperature(self): """ - Polls the temperature after the temperature timeout, re-enqueues itself. + Polls the temperature. If the printer is not operational, closing the connection, not printing from sd, busy with a long running command or heating, no poll will be done. @@ -1556,7 +1556,7 @@ class MachineCom(object): def _poll_sd_status(self): """ - Polls the sd printing status after the sd status timeout, re-enqueues itself. + Polls the sd printing status. If the printer is not operational, closing the connection, not printing from sd, busy with a long running command or heating, no poll will be done.