klipper-dgus/klippy
Kevin O'Connor 6de85d02ae serialqueue: Message receive_time must be taken after read()
The est_clock calculation code requires timestamps on status messages
to never be prior to the reception of the message.  The eventtime of
handle_message() is taken before the read() and there is a small
possibility that it could be inaccurate enough to corrupt the
est_clock calculation.  Take a new timestamp when storing receive_time
to prevent this.  This fix prevents some firmware "Move queue empty"
shutdowns.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2017-03-24 19:16:33 -04:00
..
cartesian.py klippy: Eliminate high-level build_config phase 2017-03-13 00:38:17 -04:00
chelper.py reactor: Use the system monotonic clock instead of the normal system clock 2017-02-06 13:31:34 -05:00
console.py mcu: Support config mechanism for translating seconds to clock ticks 2017-03-13 00:38:17 -04:00
delta.py klippy: Eliminate high-level build_config phase 2017-03-13 00:38:17 -04:00
extruder.py extruder: Make sure EXTRUDE_DIFF_IGNORE doesn't trigger due to rounding 2017-03-20 14:39:06 -04:00
fan.py klippy: Eliminate high-level build_config phase 2017-03-13 00:38:17 -04:00
gcode.py gcode: Catch common gcode parameter errors 2017-03-16 13:13:36 -04:00
heater.py heater: Force set_pwm of zero when target_temp is zero 2017-03-16 12:49:15 -04:00
homing.py gcode: Rework homing to use greenlets 2016-12-09 17:09:51 -05:00
klippy.py klippy: Log python info at start of log 2017-03-16 14:41:25 -04:00
list.h Initial commit of source code. 2016-05-25 11:37:40 -04:00
mcu.py mcu: Defer MCU_adc register_msg until ready to receive messages 2017-03-16 14:41:26 -04:00
msgproto.py klippy: Warn the user on common errors due to old firmware 2017-01-10 00:13:28 -05:00
parsedump.py Initial commit of source code. 2016-05-25 11:37:40 -04:00
pins.py mcu: Support config mechanism for translating seconds to clock ticks 2017-03-13 00:38:17 -04:00
pyhelper.c reactor: Use the system monotonic clock instead of the normal system clock 2017-02-06 13:31:34 -05:00
pyhelper.h reactor: Use the system monotonic clock instead of the normal system clock 2017-02-06 13:31:34 -05:00
queuelogger.py queuelogger: Add support for background log writing 2016-11-12 22:53:43 -05:00
reactor.py reactor: Use the system monotonic clock instead of the normal system clock 2017-02-06 13:31:34 -05:00
serialhdl.py serialhdl: Make sure to calculate est_clock before connect() finishes 2017-03-24 11:13:55 -04:00
serialqueue.c serialqueue: Message receive_time must be taken after read() 2017-03-24 19:16:33 -04:00
serialqueue.h serialqueue: Remove serialqueue_flush_ready() 2016-12-30 20:15:05 -05:00
stepcompress.c stepcompress: Always return 0 on negative number in safe_sqrt() 2017-03-22 10:54:53 -04:00
stepper.py stepper: Fix set_min_stop_interval() calculation 2017-03-16 13:15:09 -04:00
toolhead.py toolhead: Don't raise exception from force_shutdown 2017-03-16 13:15:25 -04:00
util.py klippy: Log the type of cpu the host is running on 2017-02-12 19:14:26 -05:00