From eb207aa4b0ca2d0f2d14e73ef64a34b236cc0743 Mon Sep 17 00:00:00 2001 From: lrgex Date: Wed, 15 Nov 2023 15:58:40 +0300 Subject: [PATCH] kmf-v2.5 --- scripts/fluidd.exp | 7 ++++++- scripts/klipper.exp | 7 +++++++ scripts/mainsail.exp | 6 ++++++ scripts/moonraker.exp | 7 +++++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/scripts/fluidd.exp b/scripts/fluidd.exp index 6730f9e..8ab2e08 100644 --- a/scripts/fluidd.exp +++ b/scripts/fluidd.exp @@ -2,7 +2,8 @@ # expect used tcl syntax which is very indetaion and spaces sensitive keep that in mind - +# Set timeout +set timeout 3000 # Start your process spawn /opt/lrgex/kiauh/kiauh.sh @@ -41,4 +42,8 @@ expect { set menu 0 exp_continue } + timeout { + puts "Operation timed out" + exit 1 + } } \ No newline at end of file diff --git a/scripts/klipper.exp b/scripts/klipper.exp index fa13a0c..28e7a18 100644 --- a/scripts/klipper.exp +++ b/scripts/klipper.exp @@ -2,6 +2,9 @@ # expect used tcl syntax which is very indetaion and spaces sensitive keep that in mind +# Set timeout +set timeout 3000 + # Start your process spawn /opt/lrgex/kiauh/kiauh.sh @@ -51,4 +54,8 @@ expect { set menu 0 exp_continue } + timeout { + puts "Operation timed out" + exit 1 + } } \ No newline at end of file diff --git a/scripts/mainsail.exp b/scripts/mainsail.exp index beb51f1..c978e1f 100644 --- a/scripts/mainsail.exp +++ b/scripts/mainsail.exp @@ -2,6 +2,8 @@ # expect used tcl syntax which is very indetaion and spaces sensitive keep that in mind +# Set timeout +set timeout 3000 # Start your process spawn /opt/lrgex/kiauh/kiauh.sh @@ -40,4 +42,8 @@ expect { set menu 0 exp_continue } + timeout { + puts "Operation timed out" + exit 1 + } } \ No newline at end of file diff --git a/scripts/moonraker.exp b/scripts/moonraker.exp index bf70ff1..365b489 100644 --- a/scripts/moonraker.exp +++ b/scripts/moonraker.exp @@ -3,6 +3,9 @@ # expect used tcl syntax which is very indetaion and spaces sensitive keep that in mind +# Set timeout +set timeout 3000 + # Start your process spawn /opt/lrgex/kiauh/kiauh.sh @@ -40,4 +43,8 @@ expect { set menu 0 exp_continue } + timeout { + puts "Operation timed out" + exit 1 + } } \ No newline at end of file