From f4653c831866094e1975581c58fbbf227884a7e3 Mon Sep 17 00:00:00 2001 From: Sigma1912 <46067220+Sigma1912@users.noreply.github.com> Date: Sat, 4 Jan 2025 15:33:26 +0100 Subject: [PATCH] Doc: User Defined Command, add note on exit codes != 0 --- docs/src/gcode/m-code.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/gcode/m-code.adoc b/docs/src/gcode/m-code.adoc index 1f020ebda09..50bcc9ce806 100644 --- a/docs/src/gcode/m-code.adoc +++ b/docs/src/gcode/m-code.adoc @@ -696,6 +696,8 @@ parameter of the INI file) is executed with the optional P and Q values as its two arguments. Execution of the G-code file pauses until the external program exits. +If the external program exits with exit code other than '0' gcode program exection is +stopped. Any valid executable file can be used. The file must be located in the search path specified in the INI file configuration. See the <> section for more information on search paths.