Skip to content

Commit

Permalink
tweak debug
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 12, 2023
1 parent a98df65 commit 9c15297
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Marlin/src/feature/powerloss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,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.get_index());
for (uint8_t i = 0; i < info.stored_repeat.get_index(); ++i)
DEBUG_ECHOLNPGM("..... marker[", i, "] sdpos: ", info.stored_repeat.get_marker_sdpos(i), " count: ", info.stored_repeat.get_marker_counter(i));
const uint8_t ind = info.stored_repeat.get_index();
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
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/feature/repeat.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class Repeat {
static void loop();
static void cancel();
static uint8_t get_index() { return index; }
static int16_t get_marker_counter(uint8_t i) { return marker[i].counter; }
static uint32_t get_marker_sdpos(uint8_t i) { return marker[i].sdpos; }
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;

0 comments on commit 9c15297

Please sign in to comment.