|
@@ -72,6 +72,20 @@ typedef struct {
|
72
|
72
|
#endif
|
73
|
73
|
#define BTC_SAMPLE_END (BTC_SAMPLE_START + (BTC_SAMPLE_COUNT) * BTC_SAMPLE_RES)
|
74
|
74
|
|
|
75
|
+// Extruder temperature calibration constants
|
|
76
|
+#if ENABLED(USE_TEMP_EXT_COMPENSATION)
|
|
77
|
+ #ifndef ETC_SAMPLE_COUNT
|
|
78
|
+ #define ETC_SAMPLE_COUNT 20
|
|
79
|
+ #endif
|
|
80
|
+ #ifndef ETC_SAMPLE_RES
|
|
81
|
+ #define ETC_SAMPLE_RES 5
|
|
82
|
+ #endif
|
|
83
|
+ #ifndef ETC_SAMPLE_START
|
|
84
|
+ #define ETC_SAMPLE_START 180
|
|
85
|
+ #endif
|
|
86
|
+ #define ETC_SAMPLE_END (ETC_SAMPLE_START + (ETC_SAMPLE_COUNT) * ETC_SAMPLE_RES)
|
|
87
|
+#endif
|
|
88
|
+
|
75
|
89
|
#ifndef PTC_PROBE_HEATING_OFFSET
|
76
|
90
|
#define PTC_PROBE_HEATING_OFFSET 0.5f
|
77
|
91
|
#endif
|
|
@@ -81,10 +95,10 @@ typedef struct {
|
81
|
95
|
#endif
|
82
|
96
|
|
83
|
97
|
static constexpr temp_calib_t cali_info_init[TSI_COUNT] = {
|
84
|
|
- { PTC_SAMPLE_COUNT, PTC_SAMPLE_RES, PTC_SAMPLE_START, PTC_SAMPLE_END }, // Probe
|
85
|
|
- { BTC_SAMPLE_COUNT, BTC_SAMPLE_RES, BTC_SAMPLE_START, BTC_SAMPLE_END }, // Bed
|
|
98
|
+ { PTC_SAMPLE_COUNT, PTC_SAMPLE_RES, PTC_SAMPLE_START, PTC_SAMPLE_END }, // Probe
|
|
99
|
+ { BTC_SAMPLE_COUNT, BTC_SAMPLE_RES, BTC_SAMPLE_START, BTC_SAMPLE_END }, // Bed
|
86
|
100
|
#if ENABLED(USE_TEMP_EXT_COMPENSATION)
|
87
|
|
- { 20, 5, 180, 180 + 5 * 20 } // Extruder
|
|
101
|
+ { ETC_SAMPLE_COUNT, ETC_SAMPLE_RES, ETC_SAMPLE_START, ETC_SAMPLE_END }, // Extruder
|
88
|
102
|
#endif
|
89
|
103
|
};
|
90
|
104
|
|