Skip to content

Commit 90b7f82

Browse files
committed
mcu: Rework formatting of MAX_SCHEDULE_TICKS error string
Signed-off-by: Kevin O'Connor <[email protected]>
1 parent 053342f commit 90b7f82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

klippy/mcu.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,10 @@ def _mcu_identify(self):
10011001
pin_resolver.reserve_pin(pin, cname[13:])
10021002
if MAX_NOMINAL_DURATION * self._mcu_freq > MAX_SCHEDULE_TICKS:
10031003
max_possible = MAX_SCHEDULE_TICKS * 1 / self._mcu_freq
1004-
raise error("Too high clock speed for MCU '%s' " % (self._name,) +
1005-
"to be able to resolve a maximum nominal duration " +
1006-
"of %ds. " % (MAX_NOMINAL_DURATION) +
1007-
"Max possible duration: %ds" % (max_possible))
1004+
raise error("Too high clock speed for MCU '%s'"
1005+
" to be able to resolve a maximum nominal duration"
1006+
" of %ds. Max possible duration: %ds"
1007+
% (self._name, MAX_NOMINAL_DURATION, max_possible))
10081008
# Config creation helpers
10091009
def setup_pin(self, pin_type, pin_params):
10101010
pcs = {'endstop': MCU_endstop,

0 commit comments

Comments
 (0)