From 732b6e0cad10fe2d05fe642078bce3406dd2e40e Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Mon, 7 Dec 2020 15:44:49 +0100 Subject: [PATCH] Cleanup --- Firmware/temperature.cpp | 5 +---- Firmware/ultralcd.cpp | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index a7ff4dff..dbd5fd9d 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -2325,7 +2325,7 @@ float unscalePID_d(float d) //! //! @retval true firmware should do temperature compensation and allow calibration //! @retval false PINDA thermistor is not detected, disable temperature compensation and calibration -//! @retval true/false when overwritten in LCD menu Settings->HW Setup->SuperPINDA +//! @retval true/false when forced via LCD menu Settings->HW Setup->SuperPINDA //! bool has_temperature_compensation() { @@ -2333,9 +2333,6 @@ bool has_temperature_compensation() uint8_t pinda_temp_compensation = eeprom_read_byte((uint8_t*)EEPROM_PINDA_TEMP_COMPENSATION); if (pinda_temp_compensation == EEPROM_EMPTY_VALUE) //Unkown PINDA temp compenstation, so check it. { - //SERIAL_ECHOLNPGM("Current PINDATEMP:"); - //SERIAL_ECHO(current_temperature_pinda); - //SERIAL_ECHOLN(PINDA_MINTEMP); return (current_temperature_pinda >= PINDA_MINTEMP) ? true : false; } else if (pinda_temp_compensation == 0) return true; //Overwritten via LCD menu SuperPINDA [No] diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index e20180b6..d721e044 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -9253,4 +9253,6 @@ void lcd_pinda_temp_compensation_toggle() else pinda_temp_compensation = !pinda_temp_compensation; eeprom_update_byte((uint8_t*)EEPROM_PINDA_TEMP_COMPENSATION, pinda_temp_compensation); -} \ No newline at end of file + SERIAL_ECHOLNPGM("LCD U SuperPINDA:"); + SERIAL_ECHOLN(pinda_temp_compensation); +}