diff --git a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg index cf82b8f9..4a9aa081 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/machine.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/machine.cfg @@ -247,15 +247,17 @@ switch_pin: PC0 pause_on_runout: false debounce_delay: 1 runout_distance: 770 +smart: true runout_gcode: - RESPOND MSG="Refill filament" - PAUSE STATE=runout + {% if 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: RESPOND MSG="Filament is inserted" - [led case] white_pin: PG15 initial_WHITE: 1 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