From ccdf5e9c41cff79cb7106e24880df12aa0f67398 Mon Sep 17 00:00:00 2001 From: PavelSindler <sindlerpa@gmail.com> Date: Thu, 6 Apr 2017 19:44:03 +0200 Subject: [PATCH] Message that temp calibration has not been run yet is displayed only if temp. calibration is activated --- Firmware/Marlin_main.cpp | 8 ++++---- Firmware/mesh_bed_calibration.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 4abe0ba1..bbca8105 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -1164,7 +1164,7 @@ void setup() // Show the message. lcd_show_fullscreen_message_and_wait_P(MSG_BABYSTEP_Z_NOT_SET); lcd_update_enable(true); - } else if (calibration_status() == CALIBRATION_STATUS_PINDA) { + } else if (calibration_status() == CALIBRATION_STATUS_PINDA && temp_cal_active == true) { lcd_show_fullscreen_message_and_wait_P(MSG_PINDA_NOT_CALIBRATED); lcd_update_enable(true); } else if (calibration_status() == CALIBRATION_STATUS_Z_CALIBRATION) { @@ -3228,7 +3228,7 @@ void process_commands() * This G-code will be performed at the end of a calibration script. */ case 87: - calibration_status_store(CALIBRATION_STATUS_PINDA); + calibration_status_store(CALIBRATION_STATUS_PINDA); break; /** @@ -6268,8 +6268,8 @@ void temp_compensation_apply() { st_synchronize(); plan_set_z_position(current_position[Z_AXIS]); } - else { - //message that we have no temp compensation data + else { + //message that we have no temp compensation data ? } } diff --git a/Firmware/mesh_bed_calibration.cpp b/Firmware/mesh_bed_calibration.cpp index 4113fd49..02192286 100644 --- a/Firmware/mesh_bed_calibration.cpp +++ b/Firmware/mesh_bed_calibration.cpp @@ -2155,7 +2155,7 @@ void babystep_apply() { // Apply Z height correction aka baby stepping before mesh bed leveling gets activated. if(calibration_status() <= CALIBRATION_STATUS_PINDA) - { + { check_babystep(); //checking if babystep is in allowed range, otherwise setting babystep to 0 // End of G80: Apply the baby stepping value.