🔧 More thorough TEMP_SENSOR_* cleanup (#27826)

This commit is contained in:
ellensp 2025-05-01 07:37:11 +12:00 committed by GitHub
parent 1c719fd10d
commit 48cc310c58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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