aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 71d58760..5d63af72 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -376,8 +376,12 @@ class MCU:
def __init__(self, printer, config):
self._printer = printer
# Serial port
- baud = config.getint('baud', 250000)
self._serialport = config.get('serial', '/dev/ttyS0')
+ if self._serialport.startswith("/dev/rpmsg_"):
+ # Beaglbone PRU
+ baud = 0
+ else:
+ baud = config.getint('baud', 250000, minval=2400)
self.serial = serialhdl.SerialReader(
printer.reactor, self._serialport, baud)
self.is_shutdown = False