Allow setting PIDTEMP and PIDTEMPBED together or apart

This commit is contained in:
Scott Lahteine
2016-04-19 18:09:29 -07:00
parent 5cb8ec68ae
commit ba84d8d091
5 changed files with 101 additions and 35 deletions

View File

@ -1343,7 +1343,7 @@ static void lcd_control_menu() {
static void _lcd_autotune(int e) {
char cmd[30];
sprintf_P(cmd, PSTR("M303 U1 E%d S%d"), e,
#if ENABLED(PIDTEMP) && ENABLED(PIDTEMPBED)
#if HAS_PID_FOR_BOTH
e < 0 ? autotune_temp_bed : autotune_temp[e]
#elif ENABLED(PIDTEMPBED)
autotune_temp_bed