mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 13:25:54 +00:00
🧑💻 Fix M808 debug (#26367)
This commit is contained in:
parent
573eae8d95
commit
7c8ea8e0e0
@ -581,9 +581,10 @@ void PrintJobRecovery::resume() {
|
||||
DEBUG_ECHOLNPGM("zraise: ", info.zraise, " ", info.flag.raised ? "(before)" : "");
|
||||
|
||||
#if ENABLED(GCODE_REPEAT_MARKERS)
|
||||
DEBUG_ECHOLNPGM("repeat index: ", info.stored_repeat.index);
|
||||
for (uint8_t i = 0; i < info.stored_repeat.index; ++i)
|
||||
DEBUG_ECHOLNPGM("..... sdpos: ", info.stored_repeat.marker.sdpos, " count: ", info.stored_repeat.marker.counter);
|
||||
const uint8_t ind = info.stored_repeat.count();
|
||||
DEBUG_ECHOLNPGM("repeat markers: ", ind);
|
||||
for (uint8_t i = ind; i--;)
|
||||
DEBUG_ECHOLNPGM("...", i, " sdpos: ", info.stored_repeat.get_marker_sdpos(i), " count: ", info.stored_repeat.get_marker_counter(i));
|
||||
#endif
|
||||
|
||||
#if HAS_HOME_OFFSET
|
||||
|
@ -48,6 +48,9 @@ public:
|
||||
static void add_marker(const uint32_t sdpos, const uint16_t count);
|
||||
static void loop();
|
||||
static void cancel();
|
||||
static uint8_t count() { return index; }
|
||||
static int16_t get_marker_counter(const uint8_t i) { return marker[i].counter; }
|
||||
static uint32_t get_marker_sdpos(const uint8_t i) { return marker[i].sdpos; }
|
||||
};
|
||||
|
||||
extern Repeat repeat;
|
||||
|
Loading…
Reference in New Issue
Block a user