debugging
This commit is contained in:
parent
957b3cfac5
commit
746ac17e4e
@ -8504,14 +8504,15 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
|
||||
uint16_t sdlen_cmdqueue = cmdqueue_calc_sd_length(); //length of sd commands in cmdqueue
|
||||
saved_sdpos -= sdlen_cmdqueue;
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
SERIAL_ECHOPGM("SDPOS_ATOMIC="); MYSERIAL.println(sdpos_atomic, DEC);
|
||||
SERIAL_ECHOPGM("SDPOS="); MYSERIAL.println(card.get_sdpos(), DEC);
|
||||
SERIAL_ECHOPGM("SDLEN_PLAN="); MYSERIAL.println(sdlen_planner, DEC);
|
||||
SERIAL_ECHOPGM("SDLEN_CMDQ="); MYSERIAL.println(sdlen_cmdqueue, DEC);
|
||||
SERIAL_ECHOPGM("PLANNERBLOCKS="); MYSERIAL.println(int(nplanner_blocks), DEC);
|
||||
SERIAL_ECHOPGM("SDSAVED="); MYSERIAL.println(saved_sdpos, DEC);
|
||||
SERIAL_ECHOPGM("SDFILELEN="); MYSERIAL.println(card.fileSize(), DEC);
|
||||
//SERIAL_ECHOPGM("SDFILELEN="); MYSERIAL.println(card.fileSize(), DEC);
|
||||
|
||||
|
||||
{
|
||||
card.setIndex(saved_sdpos);
|
||||
@ -8523,7 +8524,7 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
|
||||
MYSERIAL.print(char(card.get()));
|
||||
SERIAL_ECHOLNPGM("End of command buffer");
|
||||
}
|
||||
|
||||
#if 1
|
||||
{
|
||||
// Print the content of the planner buffer, line by line:
|
||||
card.setIndex(saved_sdpos);
|
||||
@ -8533,7 +8534,7 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
|
||||
MYSERIAL.print(int(iline), DEC);
|
||||
SERIAL_ECHOPGM(", length: ");
|
||||
MYSERIAL.print(block_buffer[idx].sdlen, DEC);
|
||||
SERIAL_ECHOPGM(", steps: (");
|
||||
/*SERIAL_ECHOPGM(", steps: (");
|
||||
MYSERIAL.print(block_buffer[idx].steps_x, DEC);
|
||||
SERIAL_ECHOPGM(",");
|
||||
MYSERIAL.print(block_buffer[idx].steps_y, DEC);
|
||||
@ -8544,9 +8545,10 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
|
||||
SERIAL_ECHOPGM("), events: ");
|
||||
MYSERIAL.println(block_buffer[idx].step_event_count, DEC);
|
||||
for (int len = block_buffer[idx].sdlen; len > 0; -- len)
|
||||
MYSERIAL.print(char(card.get()));
|
||||
MYSERIAL.print(char(card.get()));*/
|
||||
}
|
||||
}
|
||||
#endif
|
||||
{
|
||||
// Print the content of the command buffer, line by line:
|
||||
int8_t iline = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user