From 42faa962fc1085ab530dd148c4de54dfcc718833 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 21 Apr 2025 13:44:58 -0400 Subject: [PATCH] mcu: Decrease mcu.max_nominal_duration() to 3 seconds from 5 This allows the mcu to utilize faster internal speeds. Signed-off-by: Kevin O'Connor --- docs/Config_Changes.md | 5 +++++ klippy/mcu.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index 3059eec5..368e8900 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -8,6 +8,11 @@ All dates in this document are approximate. ## Changes +20250425: The maximum `cycle_time` for pwm `[output_pin]`, +`[pwm_cycle_time]`, `[pwm_tool]`, and similar config sections is now 3 +seconds (reduced from 5 seconds). The `maximum_mcu_duration` in +`[pwm_tool]` is now also 3 seconds. + 20250418: The manual_stepper `STOP_ON_ENDSTOP` feature may now take less time to complete. Previously, the command would wait the entire time the move could possibly take even if the endstop triggered diff --git a/klippy/mcu.py b/klippy/mcu.py index 2800b235..ca519198 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -548,7 +548,7 @@ class MCU_adc: # Minimum time host needs to get scheduled events queued into mcu MIN_SCHEDULE_TIME = 0.100 # Maximum time all MCUs can internally schedule into the future -MAX_NOMINAL_DURATION = 5.0 +MAX_NOMINAL_DURATION = 3.0 class MCU: error = error