|
@@ -183,7 +183,6 @@ static int bed_maxttemp_raw = HEATER_BED_RAW_HI_TEMP;
|
|
|
static float analog2temp(int raw, uint8_t e);
|
|
|
static float analog2tempBed(int raw);
|
|
|
static float analog2tempAmbient(int raw);
|
|
|
-static float analog2tempPINDA(int raw);
|
|
|
static void updateTemperaturesFromRawValues();
|
|
|
|
|
|
enum TempRunawayStates
|
|
@@ -936,35 +935,6 @@ static float analog2tempBed(int raw) {
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-#ifdef PINDA_THERMISTOR
|
|
|
-
|
|
|
-static float analog2tempPINDA(int raw) {
|
|
|
-
|
|
|
- float celsius = 0;
|
|
|
- byte i;
|
|
|
-
|
|
|
- for (i = 1; i<BEDTEMPTABLE_LEN; i++)
|
|
|
- {
|
|
|
- if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw)
|
|
|
- {
|
|
|
- celsius = PGM_RD_W(BEDTEMPTABLE[i - 1][1]) +
|
|
|
- (raw - PGM_RD_W(BEDTEMPTABLE[i - 1][0])) *
|
|
|
- (float)(PGM_RD_W(BEDTEMPTABLE[i][1]) - PGM_RD_W(BEDTEMPTABLE[i - 1][1])) /
|
|
|
- (float)(PGM_RD_W(BEDTEMPTABLE[i][0]) - PGM_RD_W(BEDTEMPTABLE[i - 1][0]));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // Overflow: Set to last value in the table
|
|
|
- if (i == BEDTEMPTABLE_LEN) celsius = PGM_RD_W(BEDTEMPTABLE[i - 1][1]);
|
|
|
-
|
|
|
- return celsius;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-#endif //PINDA_THERMISTOR
|
|
|
-
|
|
|
-
|
|
|
#ifdef AMBIENT_THERMISTOR
|
|
|
static float analog2tempAmbient(int raw)
|
|
|
{
|