Fix compiler warning: In file included from sketch/Marlin_main.cpp:67:0:
sketch/temperature.h: In function 'void M600_wait_for_user()': sketch/temperature.h:142:30: warning: array subscript is above array bounds [-Warray-bounds] target_temperature[extruder] = celsius;
This commit is contained in:
parent
d66da30843
commit
904fe7e886
1 changed files with 1 additions and 4 deletions
|
@ -3092,7 +3092,6 @@ void gcode_M600(bool automatic, float x_position, float y_position, float z_shif
|
||||||
|
|
||||||
//First backup current position and settings
|
//First backup current position and settings
|
||||||
feedmultiplyBckp=feedmultiply;
|
feedmultiplyBckp=feedmultiply;
|
||||||
float HotendTempBckp = degTargetHotend(active_extruder);
|
|
||||||
int fanSpeedBckp = fanSpeed;
|
int fanSpeedBckp = fanSpeed;
|
||||||
lastpos[X_AXIS]=current_position[X_AXIS];
|
lastpos[X_AXIS]=current_position[X_AXIS];
|
||||||
lastpos[Y_AXIS]=current_position[Y_AXIS];
|
lastpos[Y_AXIS]=current_position[Y_AXIS];
|
||||||
|
@ -9066,9 +9065,7 @@ void M600_wait_for_user() {
|
||||||
if (millis() > waiting_start_time + (unsigned long)M600_TIMEOUT * 1000) {
|
if (millis() > waiting_start_time + (unsigned long)M600_TIMEOUT * 1000) {
|
||||||
lcd_display_message_fullscreen_P(_i("Press knob to preheat nozzle and continue."));////MSG_PRESS_TO_PREHEAT c=20 r=4
|
lcd_display_message_fullscreen_P(_i("Press knob to preheat nozzle and continue."));////MSG_PRESS_TO_PREHEAT c=20 r=4
|
||||||
wait_for_user_state = 1;
|
wait_for_user_state = 1;
|
||||||
setTargetHotend(0, 0);
|
setAllTargetHotends(0);
|
||||||
setTargetHotend(0, 1);
|
|
||||||
setTargetHotend(0, 2);
|
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
disable_e0();
|
disable_e0();
|
||||||
disable_e1();
|
disable_e1();
|
||||||
|
|
Loading…
Reference in a new issue