|
@@ -5753,6 +5753,15 @@ void lcd_hw_setup_menu(void) // can not be "static"
|
|
|
MENU_ITEM_SUBMENU_P(PSTR("Experimental"), lcd_experimental_menu);////MSG_MENU_EXPERIMENTAL c=18
|
|
|
}
|
|
|
|
|
|
+#ifdef PINDA_TEMP_COMP
|
|
|
+ //! The SuperPINDA is detected when the PINDA temp is below its defined limit.
|
|
|
+ //! This works well on the EINSY board but not on the miniRAMBo board as
|
|
|
+ //! as a disconnected SuperPINDA will show higher temps compared to an EINSY board.
|
|
|
+ //!
|
|
|
+ //! This menu allows the user to en-/disable the SuperPINDA manualy
|
|
|
+ MENU_ITEM_TOGGLE_P(_N("SuperPINDA"), eeprom_read_byte((uint8_t *)EEPROM_PINDA_TEMP_COMPENSATION) ? _T(MSG_YES) : _T(MSG_NO), lcd_pinda_temp_compensation_toggle);
|
|
|
+#endif //PINDA_TEMP_COMP
|
|
|
+
|
|
|
MENU_END();
|
|
|
}
|
|
|
|
|
@@ -9235,3 +9244,17 @@ void lcd_experimental_menu()
|
|
|
|
|
|
MENU_END();
|
|
|
}
|
|
|
+
|
|
|
+#ifdef PINDA_TEMP_COMP
|
|
|
+void lcd_pinda_temp_compensation_toggle()
|
|
|
+{
|
|
|
+ uint8_t pinda_temp_compensation = eeprom_read_byte((uint8_t*)EEPROM_PINDA_TEMP_COMPENSATION);
|
|
|
+ if (pinda_temp_compensation == EEPROM_EMPTY_VALUE) // On MK2.5/S the EEPROM_EMPTY_VALUE will be set to 0 during eeprom_init.
|
|
|
+ pinda_temp_compensation = 1; // But for MK3/S it should be 1 so SuperPINDA is "active"
|
|
|
+ else
|
|
|
+ pinda_temp_compensation = !pinda_temp_compensation;
|
|
|
+ eeprom_update_byte((uint8_t*)EEPROM_PINDA_TEMP_COMPENSATION, pinda_temp_compensation);
|
|
|
+ SERIAL_ECHOLNPGM("SuperPINDA:");
|
|
|
+ SERIAL_ECHOLN(pinda_temp_compensation);
|
|
|
+}
|
|
|
+#endif //PINDA_TEMP_COMP
|