Skip to content

Commit

Permalink
added MCU version log at Klippain startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x committed May 9, 2023
1 parent fe82161 commit 6f4980f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions macros/miscs/startup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 6f4980f

Please sign in to comment.