aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-23 16:18:08 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-29 21:54:40 -0500
commitceb60ffcc62e6338077b7496682bde68cd475337 (patch)
tree806ac6d5f50e20583e3075b9e8aecfb660f26d96 /klippy/mcu.py
parent72c4f353e66440896e1aaa1d4b43ca1593bc4634 (diff)
downloadkutter-ceb60ffcc62e6338077b7496682bde68cd475337.tar.gz
kutter-ceb60ffcc62e6338077b7496682bde68cd475337.tar.xz
kutter-ceb60ffcc62e6338077b7496682bde68cd475337.zip
mcu: Rename output_file_mode variable to is_fileoutput
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 1c309f6c..ba95d92c 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -149,7 +149,7 @@ class MCU_endstop:
self._last_state = params
def check_busy(self, eventtime):
# Check if need to send an end_stop_query command
- if self._mcu.output_file_mode:
+ if self._mcu.is_fileoutput():
return False
last_sent_time = self._last_state.get('#sent_time', -1.)
if last_sent_time >= self._min_query_time:
@@ -302,7 +302,7 @@ class MCU:
serialport = config.get('serial', '/dev/ttyS0')
self.serial = serialhdl.SerialReader(printer.reactor, serialport, baud)
self.is_shutdown = False
- self.output_file_mode = False
+ self._is_fileoutput = False
# Config building
self._emergency_stop_cmd = None
self._num_oids = 0
@@ -355,7 +355,7 @@ class MCU:
self.register_msg(self.handle_shutdown, 'is_shutdown')
self.register_msg(self.handle_mcu_stats, 'stats')
def connect_file(self, debugoutput, dictionary, pace=False):
- self.output_file_mode = True
+ self._is_fileoutput = True
self.serial.connect_file(debugoutput, dictionary)
self._mcu_freq = float(self.serial.msgparser.config['CLOCK_FREQ'])
def dummy_send_config():
@@ -386,6 +386,8 @@ class MCU:
return stats
def force_shutdown(self):
self.send(self._emergency_stop_cmd.encode())
+ def is_fileoutput(self):
+ return self._is_fileoutput
# Configuration phase
def _add_custom(self):
data = self._config.get('custom', '')