From fc8cc622fd62b3323fcd2a6ed07e69bf7f75ea04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Joz=C3=ADfek?= Date: Wed, 15 May 2024 15:44:11 +0200 Subject: [PATCH] Ignore serial errors during the first setup script --- prusa/link/data/image_builder/first-boot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prusa/link/data/image_builder/first-boot.sh b/prusa/link/data/image_builder/first-boot.sh index fb921af6..383daabd 100644 --- a/prusa/link/data/image_builder/first-boot.sh +++ b/prusa/link/data/image_builder/first-boot.sh @@ -1,10 +1,10 @@ set_up_port () { # Sets the baudrate and cancels the hangup at the end of a connection - stty -F "$1" 115200 -hupcl; + stty -F "$1" 115200 -hupcl || true } message() { - printf "M117 $2\n" > "$1" + printf "M117 $2\n" > "$1" || true } set_up_port "/dev/ttyAMA0"