|
@@ -334,6 +334,15 @@ bool bSettings;
|
|
|
|
|
|
const char STR_SEPARATOR[] PROGMEM = "------------";
|
|
|
|
|
|
+static bool has_temperature_compensation()
|
|
|
+{
|
|
|
+#ifdef DETECT_SUPERPINDA
|
|
|
+ return (current_temperature_pinda >= PINDA_MINTEMP) ? true : false;
|
|
|
+#else
|
|
|
+ return true;
|
|
|
+#endif
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* filename, char* longFilename)
|
|
|
{
|
|
@@ -5764,8 +5773,10 @@ static void lcd_settings_menu()
|
|
|
#if defined (TMC2130) && defined (LINEARITY_CORRECTION)
|
|
|
MENU_ITEM_SUBMENU_P(_i("Lin. correction"), lcd_settings_linearity_correction_menu);
|
|
|
#endif
|
|
|
-
|
|
|
- MENU_ITEM_TOGGLE_P(_T(MSG_TEMP_CALIBRATION), eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE) ? _T(MSG_ON) : _T(MSG_OFF), lcd_temp_calibration_set);
|
|
|
+ if(has_temperature_compensation())
|
|
|
+ {
|
|
|
+ MENU_ITEM_TOGGLE_P(_T(MSG_TEMP_CALIBRATION), eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE) ? _T(MSG_ON) : _T(MSG_OFF), lcd_temp_calibration_set);
|
|
|
+ }
|
|
|
|
|
|
#ifdef HAS_SECOND_SERIAL_PORT
|
|
|
MENU_ITEM_TOGGLE_P(_T(MSG_RPI_PORT), (selectedSerialPort == 0) ? _T(MSG_OFF) : _T(MSG_ON), lcd_second_serial_set);
|
|
@@ -5869,7 +5880,10 @@ static void lcd_calibration_menu()
|
|
|
|
|
|
#endif
|
|
|
#ifndef MK1BP
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Temp. calibration"), lcd_pinda_calibration_menu);
|
|
|
+ if(has_temperature_compensation())
|
|
|
+ {
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Temp. calibration"), lcd_pinda_calibration_menu);
|
|
|
+ }
|
|
|
#endif
|
|
|
}
|
|
|
|