From 82eedca7ecf57f93c42d83a9224976f9de537480 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 28 Sep 2022 19:40:50 -0400 Subject: [PATCH] extra tempusb check --- octoprint_deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 8623899..00f2b9f 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -469,7 +469,10 @@ detect_printer() { if [[ -n "$TEMPUSB" ]] && [[ -z "$UDEV" ]]; then break fi + #run this one more time just to catch the USB position,even if we have a serial number done + TEMPUSB=$(dmesg | sed -n -e 's/^.*\(cdc_acm\|ftdi_sio\|ch341\|cp210x\) \([0-9].*[0-9]\): \(tty.*\|FTD.*\|ch341-uart.*\|cp210x\).*/\2/p') + } remove_instance() {