🧑‍💻 Fix M808 debug (#26367)

This commit is contained in:
ellensp 2023-11-12 15:02:53 +13:00 committed by GitHub
parent 573eae8d95
commit 7c8ea8e0e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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;