|
280 | 280 | #define _SENSOR_IS(I,N) || (TEMP_SENSOR(N) == I)
|
281 | 281 | #define _E_SENSOR_IS(I,N) _SENSOR_IS(N,I)
|
282 | 282 | #define ANY_E_SENSOR_IS(N) (0 REPEAT2(HOTENDS, _E_SENSOR_IS, N))
|
283 |
| -#define ANY_THERMISTOR_IS(N) ( ANY_E_SENSOR_IS(N) \ |
284 |
| - _SENSOR_IS(N,BED) _SENSOR_IS(N,PROBE) _SENSOR_IS(N,CHAMBER) \ |
285 |
| - _SENSOR_IS(N,COOLER) _SENSOR_IS(N,BOARD) _SENSOR_IS(N,REDUNDANT) ) |
| 283 | +#define ANY_EXT_THERMISTOR_IS(N) ( ANY_E_SENSOR_IS(N) _SENSOR_IS(N,REDUNDANT) \ |
| 284 | + _SENSOR_IS(N,BED) _SENSOR_IS(N,PROBE) _SENSOR_IS(N,CHAMBER) _SENSOR_IS(N,COOLER) ) |
| 285 | +#define ANY_THERMISTOR_IS(N) ( ANY_EXT_THERMISTOR_IS(N) _SENSOR_IS(N,BOARD) ) |
286 | 286 |
|
287 | 287 | #if ANY_THERMISTOR_IS(1000)
|
288 | 288 | #define HAS_USER_THERMISTORS 1
|
|
320 | 320 | #define TEMP_SENSOR_0_IS_AD8495 1
|
321 | 321 | #elif TEMP_SENSOR_0 == -1
|
322 | 322 | #define TEMP_SENSOR_0_IS_AD595 1
|
323 |
| -#elif TEMP_SENSOR_0 == -100 |
324 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_0." |
325 | 323 | #elif TEMP_SENSOR_0 == 1000
|
326 | 324 | #define TEMP_SENSOR_0_IS_CUSTOM 1
|
327 | 325 | #elif TEMP_SENSOR_0 == 998 || TEMP_SENSOR_0 == 999
|
|
367 | 365 | #define TEMP_SENSOR_1_IS_AD8495 1
|
368 | 366 | #elif TEMP_SENSOR_1 == -1
|
369 | 367 | #define TEMP_SENSOR_1_IS_AD595 1
|
370 |
| -#elif TEMP_SENSOR_1 == -100 |
371 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_1." |
372 | 368 | #elif TEMP_SENSOR_1 == 1000
|
373 | 369 | #define TEMP_SENSOR_1_IS_CUSTOM 1
|
374 | 370 | #elif TEMP_SENSOR_1 == 998 || TEMP_SENSOR_1 == 999
|
|
414 | 410 | #define TEMP_SENSOR_2_IS_AD8495 1
|
415 | 411 | #elif TEMP_SENSOR_2 == -1
|
416 | 412 | #define TEMP_SENSOR_2_IS_AD595 1
|
417 |
| -#elif TEMP_SENSOR_2 == -100 |
418 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_2." |
419 | 413 | #elif TEMP_SENSOR_2 == 1000
|
420 | 414 | #define TEMP_SENSOR_2_IS_CUSTOM 1
|
421 | 415 | #elif TEMP_SENSOR_2 == 998 || TEMP_SENSOR_2 == 999
|
|
543 | 537 | #define TEMP_SENSOR_REDUNDANT_IS_AD8495 1
|
544 | 538 | #elif TEMP_SENSOR_REDUNDANT == -1
|
545 | 539 | #define TEMP_SENSOR_REDUNDANT_IS_AD595 1
|
546 |
| -#elif TEMP_SENSOR_REDUNDANT == -100 |
547 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_REDUNDANT." |
548 | 540 | #elif TEMP_SENSOR_REDUNDANT > 0
|
549 | 541 | #define TEMP_SENSOR_REDUNDANT_IS_THERMISTOR 1
|
550 | 542 | #if TEMP_SENSOR_REDUNDANT == 1000
|
|
567 | 559 | #define HAS_MAX31865 1
|
568 | 560 | #endif
|
569 | 561 |
|
570 |
| -#if TEMP_SENSOR_3 == -100 |
571 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_3." |
572 |
| -#elif TEMP_SENSOR_3 == -4 |
| 562 | +#if TEMP_SENSOR_3 == -4 |
573 | 563 | #define TEMP_SENSOR_3_IS_AD8495 1
|
574 | 564 | #elif TEMP_SENSOR_3 == -3
|
575 | 565 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_3."
|
|
589 | 579 | #undef HEATER_3_MAXTEMP
|
590 | 580 | #endif
|
591 | 581 |
|
592 |
| -#if TEMP_SENSOR_4 == -100 |
593 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_4." |
594 |
| -#elif TEMP_SENSOR_4 == -4 |
| 582 | +#if TEMP_SENSOR_4 == -4 |
595 | 583 | #define TEMP_SENSOR_4_IS_AD8495 1
|
596 | 584 | #elif TEMP_SENSOR_4 == -3
|
597 | 585 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_4."
|
|
611 | 599 | #undef HEATER_4_MAXTEMP
|
612 | 600 | #endif
|
613 | 601 |
|
614 |
| -#if TEMP_SENSOR_5 == -100 |
615 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_5." |
616 |
| -#elif TEMP_SENSOR_5 == -4 |
| 602 | +#if TEMP_SENSOR_5 == -4 |
617 | 603 | #define TEMP_SENSOR_5_IS_AD8495 1
|
618 | 604 | #elif TEMP_SENSOR_5 == -3
|
619 | 605 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_5."
|
|
633 | 619 | #undef HEATER_5_MAXTEMP
|
634 | 620 | #endif
|
635 | 621 |
|
636 |
| -#if TEMP_SENSOR_6 == -100 |
637 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_6." |
638 |
| -#elif TEMP_SENSOR_6 == -4 |
| 622 | +#if TEMP_SENSOR_6 == -4 |
639 | 623 | #define TEMP_SENSOR_6_IS_AD8495 1
|
640 | 624 | #elif TEMP_SENSOR_6 == -3
|
641 | 625 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_6."
|
|
655 | 639 | #undef HEATER_6_MAXTEMP
|
656 | 640 | #endif
|
657 | 641 |
|
658 |
| -#if TEMP_SENSOR_7 == -100 |
659 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_7." |
660 |
| -#elif TEMP_SENSOR_7 == -4 |
| 642 | +#if TEMP_SENSOR_7 == -4 |
661 | 643 | #define TEMP_SENSOR_7_IS_AD8495 1
|
662 | 644 | #elif TEMP_SENSOR_7 == -3
|
663 | 645 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_7."
|
|
677 | 659 | #undef HEATER_7_MAXTEMP
|
678 | 660 | #endif
|
679 | 661 |
|
680 |
| -#if TEMP_SENSOR_BED == -100 |
681 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_BED." |
682 |
| -#elif TEMP_SENSOR_BED == -4 |
| 662 | +#if TEMP_SENSOR_BED == -4 |
683 | 663 | #define TEMP_SENSOR_BED_IS_AD8495 1
|
684 | 664 | #elif TEMP_SENSOR_BED == -3
|
685 | 665 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_BED."
|
|
701 | 681 | #undef BED_MAXTEMP
|
702 | 682 | #endif
|
703 | 683 |
|
704 |
| -#if TEMP_SENSOR_CHAMBER == -100 |
705 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_CHAMBER." |
706 |
| -#elif TEMP_SENSOR_CHAMBER == -4 |
| 684 | +#if TEMP_SENSOR_CHAMBER == -4 |
707 | 685 | #define TEMP_SENSOR_CHAMBER_IS_AD8495 1
|
708 | 686 | #elif TEMP_SENSOR_CHAMBER == -3
|
709 | 687 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_CHAMBER."
|
|
724 | 702 | #undef CHAMBER_MAXTEMP
|
725 | 703 | #endif
|
726 | 704 |
|
727 |
| -#if TEMP_SENSOR_COOLER == -100 |
728 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_COOLER." |
729 |
| -#elif TEMP_SENSOR_COOLER == -4 |
| 705 | +#if TEMP_SENSOR_COOLER == -4 |
730 | 706 | #define TEMP_SENSOR_COOLER_IS_AD8495 1
|
731 | 707 | #elif TEMP_SENSOR_COOLER == -3
|
732 | 708 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_COOLER."
|
|
747 | 723 | #undef COOLER_MAXTEMP
|
748 | 724 | #endif
|
749 | 725 |
|
750 |
| -#if TEMP_SENSOR_PROBE == -100 |
751 |
| - #error "Board Internal Temperature Sensor (-100) not supported for TEMP_SENSOR_PROBE." |
752 |
| -#elif TEMP_SENSOR_PROBE == -4 |
| 726 | +#if TEMP_SENSOR_PROBE == -4 |
753 | 727 | #define TEMP_SENSOR_PROBE_IS_AD8495 1
|
754 | 728 | #elif TEMP_SENSOR_PROBE == -3
|
755 | 729 | #error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_PROBE."
|
|
0 commit comments