The-Conglomerate / Voron-Klipper-Common

Apache License 2.0
78 stars 15 forks source link

Add DEBUG to all macros #27

Closed Jasrags closed 2 years ago

Jasrags commented 2 years ago

Description

We would like all functions to have the ability to present debug messages to the user. If it's a gcode_macro the command will return debug messages via DEBUG=[0|1] or if the global DEBUG flag has been set. All macros will also pass their DEBUG param down to the next macros if we are only debugging a single macro.

Delayed macros can only be debugged via the global debug flag.

Motivation and Context

Debugging is a good thing

How has this been tested?

Screenshots (if appropriate):

Types of changes

Checklist: