mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 02:07:56 -06:00
linux: Initial support for running Klipper in a Linux real-time process
Add support for compiling the Klipper micro-controller code as a real-time process capable of running on standard Linux systems. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
3ccecc568d
commit
d851882278
10 changed files with 622 additions and 2 deletions
|
@ -399,7 +399,8 @@ class MCU:
|
|||
# Serial port
|
||||
self._serialport = config.get('serial', '/dev/ttyS0')
|
||||
baud = 0
|
||||
if not self._serialport.startswith("/dev/rpmsg_"):
|
||||
if not (self._serialport.startswith("/dev/rpmsg_")
|
||||
or self._serialport.startswith("/tmp/klipper_host_")):
|
||||
baud = config.getint('baud', 250000, minval=2400)
|
||||
self._serial = serialhdl.SerialReader(
|
||||
printer.reactor, self._serialport, baud)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue