Fix broken M100_dump_routine
This commit is contained in:
@@ -209,7 +209,7 @@ void GcodeSuite::dwell(millis_t time) {
|
||||
// Placeholders for non-migrated codes
|
||||
//
|
||||
#if ENABLED(M100_FREE_MEMORY_WATCHER)
|
||||
extern void M100_dump_routine(PGM_P const title, char *start, char *end);
|
||||
extern void M100_dump_routine(PGM_P const title, const char * const start, const char * const end);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -865,7 +865,7 @@ void GcodeSuite::process_next_command() {
|
||||
SERIAL_ECHOLN(current_command);
|
||||
#if ENABLED(M100_FREE_MEMORY_DUMPER)
|
||||
SERIAL_ECHOPAIR("slot:", queue.index_r);
|
||||
M100_dump_routine(PSTR(" Command Queue:"), queue.command_buffer, queue.command_buffer + sizeof(queue.command_buffer));
|
||||
M100_dump_routine(PSTR(" Command Queue:"), &queue.command_buffer[0][0], &queue.command_buffer[BUFSIZE - 1][MAX_CMD_SIZE - 1]);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user