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