Fix compiler warning: sketch/Marlin_main.cpp:8833:16: warning: variable 'nplanner_blocks' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
b357399c6b
commit
e6dcbedf82
1 changed files with 4 additions and 0 deletions
|
@ -8830,7 +8830,9 @@ enquecommand_P(PSTR("G4 S0"));
|
||||||
void stop_and_save_print_to_ram(float z_move, float e_move)
|
void stop_and_save_print_to_ram(float z_move, float e_move)
|
||||||
{
|
{
|
||||||
if (saved_printing) return;
|
if (saved_printing) return;
|
||||||
|
#if 0
|
||||||
unsigned char nplanner_blocks;
|
unsigned char nplanner_blocks;
|
||||||
|
#endif
|
||||||
unsigned char nlines;
|
unsigned char nlines;
|
||||||
uint16_t sdlen_planner;
|
uint16_t sdlen_planner;
|
||||||
uint16_t sdlen_cmdqueue;
|
uint16_t sdlen_cmdqueue;
|
||||||
|
@ -8838,7 +8840,9 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
|
||||||
|
|
||||||
cli();
|
cli();
|
||||||
if (card.sdprinting) {
|
if (card.sdprinting) {
|
||||||
|
#if 0
|
||||||
nplanner_blocks = number_of_blocks();
|
nplanner_blocks = number_of_blocks();
|
||||||
|
#endif
|
||||||
saved_sdpos = sdpos_atomic; //atomic sd position of last command added in queue
|
saved_sdpos = sdpos_atomic; //atomic sd position of last command added in queue
|
||||||
sdlen_planner = planner_calc_sd_length(); //length of sd commands in planner
|
sdlen_planner = planner_calc_sd_length(); //length of sd commands in planner
|
||||||
saved_sdpos -= sdlen_planner;
|
saved_sdpos -= sdlen_planner;
|
||||||
|
|
Loading…
Reference in a new issue