Skip to content

Commit

Permalink
Ignore serial errors during the first setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
TojikCZ authored and ondratu committed May 15, 2024
1 parent 1591a7b commit fc8cc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prusa/link/data/image_builder/first-boot.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit fc8cc62

Please sign in to comment.