mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 23:17:37 -06:00
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>
This commit is contained in:
parent
5ebe8ce025
commit
bc80ed4e88
4 changed files with 30 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue