current unit for freq target

This commit is contained in:
Félix Boisselier
2024-06-05 11:58:02 +02:00
parent abd3e2d98f
commit f9394c5706

View File

@@ -571,7 +571,7 @@ def plot_motor_config_txt(fig, motors, differences):
for mot, lbl in motor_details for mot, lbl in motor_details
] ]
config_blocks.append( config_blocks.append(
f'| TMC Autotune enabled (PWM freq target: X={int(motors[0].get_config("pwm_freq_target"))}kHz / Y={int(motors[1].get_config("pwm_freq_target"))}kHz)' f'| TMC Autotune enabled (PWM freq target: X={int(motors[0].get_config("pwm_freq_target")/1000)}kHz / Y={int(motors[1].get_config("pwm_freq_target")/1000)}kHz)'
) )
else: else:
config_blocks = [ config_blocks = [