PFW-571 send PRN:4 instead PRN:1 while changing filament

This commit is contained in:
NotaRobotexe 2019-05-28 18:22:34 +02:00
parent f070a10904
commit 3b2cbc68d8
2 changed files with 8 additions and 2 deletions

View File

@ -3146,6 +3146,10 @@ void gcode_M701()
{ {
printf_P(PSTR("gcode_M701 begin\n")); printf_P(PSTR("gcode_M701 begin\n"));
if (farm_mode){
prusa_statistics(22);
}
if (mmu_enabled) if (mmu_enabled)
{ {
extr_adj(tmp_extruder);//loads current extruder extr_adj(tmp_extruder);//loads current extruder

View File

@ -986,6 +986,8 @@ static void lcd_status_screen()
{ {
case 8: case 8:
prusa_statistics(21); prusa_statistics(21);
if(loading_flag)
prusa_statistics(22);
break; break;
case 5: case 5:
if (IS_SD_PRINTING) if (IS_SD_PRINTING)
@ -4145,7 +4147,7 @@ void prusa_statistics(int _message, uint8_t _fil_nr) {
SERIAL_ECHOLN("}"); SERIAL_ECHOLN("}");
status_number = 14; status_number = 14;
} }
else if (IS_SD_PRINTING) else if (IS_SD_PRINTING || loading_flag)
{ {
SERIAL_ECHO("{"); SERIAL_ECHO("{");
prusa_stat_printerstatus(4); prusa_stat_printerstatus(4);
@ -4183,7 +4185,7 @@ void prusa_statistics(int _message, uint8_t _fil_nr) {
status_number = 3; status_number = 3;
farm_timer = 1; farm_timer = 1;
if (IS_SD_PRINTING) if (IS_SD_PRINTING || loading_flag)
{ {
farm_status = 4; farm_status = 4;
SERIAL_ECHO("{"); SERIAL_ECHO("{");