mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-06 14:37:27 -06:00
🔧 More thorough TEMP_SENSOR_* cleanup (#27826)
This commit is contained in:
parent
1c719fd10d
commit
48cc310c58
1 changed files with 10 additions and 8 deletions
|
@ -42,30 +42,32 @@
|
|||
|
||||
// Clean up unused temperature sensors and sub-options
|
||||
|
||||
#if !TEMP_SENSOR_0
|
||||
#define UNUSED_TEMP_SENSOR(N) (!TEMP_SENSOR_##N || N >= HOTENDS)
|
||||
#if UNUSED_TEMP_SENSOR(0)
|
||||
#undef TEMP_SENSOR_0
|
||||
#endif
|
||||
#if !TEMP_SENSOR_1
|
||||
#if UNUSED_TEMP_SENSOR(1)
|
||||
#undef TEMP_SENSOR_1
|
||||
#endif
|
||||
#if !TEMP_SENSOR_2
|
||||
#if UNUSED_TEMP_SENSOR(2)
|
||||
#undef TEMP_SENSOR_2
|
||||
#endif
|
||||
#if !TEMP_SENSOR_3
|
||||
#if UNUSED_TEMP_SENSOR(3)
|
||||
#undef TEMP_SENSOR_3
|
||||
#endif
|
||||
#if !TEMP_SENSOR_4
|
||||
#if UNUSED_TEMP_SENSOR(4)
|
||||
#undef TEMP_SENSOR_4
|
||||
#endif
|
||||
#if !TEMP_SENSOR_5
|
||||
#if UNUSED_TEMP_SENSOR(5)
|
||||
#undef TEMP_SENSOR_5
|
||||
#endif
|
||||
#if !TEMP_SENSOR_6
|
||||
#if UNUSED_TEMP_SENSOR(6)
|
||||
#undef TEMP_SENSOR_6
|
||||
#endif
|
||||
#if !TEMP_SENSOR_7
|
||||
#if UNUSED_TEMP_SENSOR(7)
|
||||
#undef TEMP_SENSOR_7
|
||||
#endif
|
||||
#undef UNUSED_TEMP_SENSOR
|
||||
|
||||
#if !TEMP_SENSOR_BED
|
||||
#undef TEMP_SENSOR_BED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue