Browse Source

Dummy Thermistor Table for testing purposes

Am I the only one who always need to change the thermistortable.h to add
a dummy table??
Ok, it is done. Just set the thermistor to 999 and it will always read
25C. Great for Testing or Development purposes.
alexborro 10 years ago
parent
commit
a57869ba49
2 changed files with 11 additions and 0 deletions
  1. 1
    0
      Marlin/Configuration.h
  2. 10
    0
      Marlin/thermistortables.h

+ 1
- 0
Marlin/Configuration.h View File

@@ -118,6 +118,7 @@ Here are some standard links for getting your machine calibrated:
118 118
 // 1010 is Pt1000 with 1k pullup (non standard)
119 119
 // 147 is Pt100 with 4k7 pullup
120 120
 // 110 is Pt100 with 1k pullup (non standard)
121
+// 999 is a Dummy Table. It will ALWAYS read 25C.. Use it for Testing or Development purposes. NEVER for production machine.
121 122
 
122 123
 #define TEMP_SENSOR_0 -1
123 124
 #define TEMP_SENSOR_1 -1

+ 10
- 0
Marlin/thermistortables.h View File

@@ -1095,6 +1095,16 @@ const short temptable_1047[][2] PROGMEM = {
1095 1095
 };
1096 1096
 #endif
1097 1097
 
1098
+#if (THERMISTORHEATER_0 == 999) || (THERMISTORHEATER_1 == 999) || (THERMISTORHEATER_2 == 999) || (THERMISTORHEATER_3 == 999) || (THERMISTORBED == 999) //User defined table
1099
+// Dummy Thermistor table.. It will ALWAYS read 25C.
1100
+const short temptable_999[][2] PROGMEM = {
1101
+   {1*OVERSAMPLENR, 25},
1102
+   {1023*OVERSAMPLENR, 25}
1103
+};
1104
+#endif
1105
+
1106
+
1107
+
1098 1108
 #define _TT_NAME(_N) temptable_ ## _N
1099 1109
 #define TT_NAME(_N) _TT_NAME(_N)
1100 1110
 

Loading…
Cancel
Save