Further #8 fix, wasn't checking sensor when M600 active, tested working now.

This commit is contained in:
Rob McKenzie 2018-11-10 16:25:15 +10:00
parent c8f5809e1e
commit 3a89cce04f
3 changed files with 11516 additions and 11517 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2954,6 +2954,7 @@ static void gcode_M600(bool automatic, float x_position, float y_position, float
{
st_synchronize();
float lastpos[4];
mmuFSensorLoading = false;
if (farm_mode)
{
@ -6896,7 +6897,7 @@ Sigma_Exit:
mmu_command(MMU_CMD_T0 + tmp_extruder);
manage_response(true, true);
delay(12);
delay(8);
mmu_command(MMU_CMD_C0);
mmu_extruder = tmp_extruder; //filament change is finished
@ -7453,11 +7454,8 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
}
}
} else {
if (mcode_in_progress != 600) //M600 not in progress
{
if ((lcd_commands_type != LCD_COMMAND_V2_CAL) && !wizard_active && mmuFSensorLoading) {
fsensor_check_autoload();
}
if ((lcd_commands_type != LCD_COMMAND_V2_CAL) && !wizard_active && mmuFSensorLoading) {
fsensor_check_autoload();
}
}
#endif //FILAMENT_SENSOR

View File

@ -729,7 +729,7 @@ void mmu_M600_load_filament(bool automatic)
mmu_command(MMU_CMD_T0 + tmp_extruder);
manage_response(false, true);
delay(12);
delay(8);
mmu_command(MMU_CMD_C0);
mmu_extruder = tmp_extruder; //filament change is finished
delay(100);