From 5cdea02986f2b944e0568de75c958b6be37922d0 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:01:26 +0200 Subject: [PATCH 1/3] Fix runout gcode --- meta-opencentauri/recipes-apps/klipper/files/machine.cfg | 6 ++++-- meta-opencentauri/recipes-apps/klipper/files/shell.cfg | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg index cf82b8f9..71aafa30 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg @@ -248,8 +248,10 @@ pause_on_runout: false debounce_delay: 1 runout_distance: 770 runout_gcode: - RESPOND MSG="Refill filament" - PAUSE STATE=runout + {% if printer.print_stats.state == "printing" and not printer["filament_switch_sensor filament_sensor"].filament_detected %} + RESPOND MSG="Refill filament" + PAUSE STATE=runout + {% endif %} immediate_runout_gcode: RESPOND MSG="Ran out of filament, using remaining filament in PTFE" insert_gcode: diff --git a/meta-opencentauri/recipes-apps/klipper/files/shell.cfg b/meta-opencentauri/recipes-apps/klipper/files/shell.cfg index 78433a10..9aa5cefc 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/shell.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/shell.cfg @@ -105,6 +105,6 @@ gcode: [delayed_gcode check_for_updates_startup] initial_duration: 60 gcode: - {% if printer.idle_timeout.state == "Ready" and printer.print_stats.state == "standby" %} + {% if printer.idle_timeout.state in ["Idle", "Ready"] and printer.print_stats.state == "standby" %} RUN_SHELL_COMMAND CMD=CHECK_FOR_UPDATES {% endif %} \ No newline at end of file From a84c2837767fc69b4b07001ecac9657e52126d9d Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sat, 25 Jul 2026 12:25:46 +0200 Subject: [PATCH 2/3] Feedback --- meta-opencentauri/recipes-apps/klipper/files/machine.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg index 71aafa30..c3bd101d 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg @@ -247,8 +247,9 @@ switch_pin: PC0 pause_on_runout: false debounce_delay: 1 runout_distance: 770 +smart: true runout_gcode: - {% if printer.print_stats.state == "printing" and not printer["filament_switch_sensor filament_sensor"].filament_detected %} + {% if not printer["filament_switch_sensor filament_sensor"].filament_detected %} RESPOND MSG="Refill filament" PAUSE STATE=runout {% endif %} @@ -256,7 +257,7 @@ immediate_runout_gcode: RESPOND MSG="Ran out of filament, using remaining filament in PTFE" insert_gcode: RESPOND MSG="Filament is inserted" - + SET_FILAMENT_SENSOR SENSOR=filament_sensor RESET=1 [led case] white_pin: PG15 From 6843945bddcf820b69e74af409ab9e55347dda71 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 26 Jul 2026 23:14:18 +0200 Subject: [PATCH 3/3] Feedback round 2 --- meta-opencentauri/recipes-apps/klipper/files/machine.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg index c3bd101d..4a9aa081 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg @@ -257,7 +257,6 @@ immediate_runout_gcode: RESPOND MSG="Ran out of filament, using remaining filament in PTFE" insert_gcode: RESPOND MSG="Filament is inserted" - SET_FILAMENT_SENSOR SENSOR=filament_sensor RESET=1 [led case] white_pin: PG15