diff --git a/macros/miscs/startup.cfg b/macros/miscs/startup.cfg index 252f7a590..a66fbdccd 100644 --- a/macros/miscs/startup.cfg +++ b/macros/miscs/startup.cfg @@ -4,6 +4,8 @@ [delayed_gcode KLIPPAIN_STARTUP] initial_duration: 1 gcode: + # Dump the MCU version to the console for the Klippy log + _INIT_MCU_VER # Check the probe configuration and compatibility with current includes _INIT_CHECKPROBECONF @@ -48,6 +50,21 @@ gcode: {% endif %} +[gcode_macro _INIT_MCU_VER] +gcode: + {% set parameters = namespace(output = 'Currently configured MCU(s): \n') %} + {% for name1 in printer %} + {% for name2 in printer[name1] %} + {% set show = ['mcu_version'] %} + {% if name2 is in show %} + {% set param = "%s: %s" % (name1, printer[name1][name2]) %} + {% set parameters.output = parameters.output + param + "\n" %} + {% endif %} + {% endfor %} + {% endfor %} + {action_respond_info(parameters.output)} + + # TMC2240 extruder initialization macro to set the driver registers correctly. See Esoterical github for more informations: # https://github.com/Esoterical/voron_canbus/blob/main/toolhead_flashing/common_hardware/BigTreeTech%20SB2209%20and%20SB2240/SB2240%20Stepper%20Configuration%20and%20Undervoltage.md [gcode_macro _INIT_TMC2240]