aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/pyhelper.c
Commit message (Collapse)AuthorAgeFilesLines
* chelper: Move the host C code to a new klippy/chelper/ directoryKevin O'Connor2018-04-301-93/+0
| | | | | | | Move the C code out of the main klippy/ directory and into its own directory. This reduces the clutter in the main klippy directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pyhelper: Fix GETHEX() macro used in dump_string() debuggingKevin O'Connor2017-05-171-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* reactor: Use the system monotonic clock instead of the normal system clockKevin O'Connor2017-02-061-7/+10
| | | | | | | | | | | | | The normal system clock can have sudden jumps if the system clock is changed. Use the system monotonic clock to avoid these sudden changes in time. It appears the Raspbian OS (which is used by OctoPi) is setup to update the system clock upon network connectivity. This could cause sudden system clock changes which could lead to Klippy processing errors. Using the monotonic clock eliminates these issues. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pyhelper: Add ability to route error messages to python loggingKevin O'Connor2016-11-301-1/+29
| | | | | | | Instead of writing error messages to stderr, route them into the python code and use the standard python logging system. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pyhelper: Move helper functions from serialqueue.c to new fileKevin O'Connor2016-11-301-0/+62
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>