aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/serialhdl.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-30 19:31:46 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-30 21:20:09 -0500
commitbc80ed4e88656ec4dd599a11152d40ee7f18d40a (patch)
treee664b0dde757d9c62b982d42bc6ff960c35a6904 /klippy/serialhdl.py
parent5ebe8ce0259443b4f5924ed019b305627f73bc7c (diff)
downloadkutter-bc80ed4e88656ec4dd599a11152d40ee7f18d40a.tar.gz
kutter-bc80ed4e88656ec4dd599a11152d40ee7f18d40a.tar.xz
kutter-bc80ed4e88656ec4dd599a11152d40ee7f18d40a.zip
mcu: Detect if the communication channel to the firmware is lost
Detect a comms loss and report it to the user. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialhdl.py')
-rw-r--r--klippy/serialhdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py
index 7f2b9bda..7120c43c 100644
--- a/klippy/serialhdl.py
+++ b/klippy/serialhdl.py
@@ -152,7 +152,7 @@ class SerialReader:
return last_ack_clock - clock_diff
def get_last_clock(self):
with self.lock:
- return self.last_ack_clock
+ return self.last_ack_clock, self.last_ack_time
# Command sending
def send(self, cmd, minclock=0, reqclock=0, cq=None):
if cq is None: