Index: firmware/App/Drivers/TemperatureSensors.c =================================================================== diff -u -r830213bc6dcc1a684610caf78c79d55f2cb41e93 -r50144ec3e96785cf76d5bfd22ee65029c82e732b --- firmware/App/Drivers/TemperatureSensors.c (.../TemperatureSensors.c) (revision 830213bc6dcc1a684610caf78c79d55f2cb41e93) +++ firmware/App/Drivers/TemperatureSensors.c (.../TemperatureSensors.c) (revision 50144ec3e96785cf76d5bfd22ee65029c82e732b) @@ -7,8 +7,8 @@ * * @file TemperatureSensors.c * -* @author (last) Vinayakam Mani -* @date (last) 18-Sep-2025 +* @author (last) Varshini Nagabooshanam +* @date (last) 12-Jan-2026 * * @author (original) Vinayakam Mani * @date (original) 25-Sep-2024 @@ -132,6 +132,11 @@ tempSensors[ D50_TEMP ].zeroDegreeResistance = PRIMARY_HEATER_TEMP_SENSORS_0_DEGREE_RESISTANCE; tempSensors[ D50_TEMP ].maxAllowedTemp = TEMP_SENSORS_MAX_ALLOWED_DEGREE_C; + tempSensors[ D99_TEMP ].gain = PRIMARY_HEATER_TEMP_SENSORS_GAIN; + tempSensors[ D99_TEMP ].refResistance = PRIMARY_HEATER_TEMP_SENSORS_REF_RESISTANCE; + tempSensors[ D99_TEMP ].zeroDegreeResistance = PRIMARY_HEATER_TEMP_SENSORS_0_DEGREE_RESISTANCE; + tempSensors[ D99_TEMP ].maxAllowedTemp = TEMP_SENSORS_MAX_ALLOWED_DEGREE_C; + // Board temperature sensors conversion coefficient tempSensors[ BRD_TEMP ].conversionCoeff = conversionCoeff; tempSensors[ BRD_TEMP ].maxAllowedTemp = NON_FLUID_PATH_TEMP_SENSORS_MAX_ALLOWED_DEGREE_C; @@ -189,6 +194,7 @@ processTempSnsrsADCRead( D78_TEMP, getFPGAD78Temp() ); processTempSnsrsADCRead( D4_TEMP, getFPGAD4Temp() ); processTempSnsrsADCRead( D50_TEMP, getFPGAD50Temp() ); + processTempSnsrsADCRead( D99_TEMP, getFPGAD99Temp() ); //TODO: Read Board temperature //processTempSnsrsADCRead( TEMPSENSORS_INTERNAL_COND_TEMP_SENSOR, getFPGACondSnsrInternalTemp() ); @@ -314,6 +320,7 @@ case D78_TEMP: case D4_TEMP: case D50_TEMP: + case D99_TEMP: temperature = getADC2TempConversion( avgADCReads, (U32)tempSensors [ sensorIndex ].gain, (U32)tempSensors [ sensorIndex ].refResistance, (U32)tempSensors [ sensorIndex ].zeroDegreeResistance, tempSensors [ sensorIndex ].conversionCoeff ); break; @@ -408,6 +415,10 @@ //calId = CAL_DATA_TRIM_HEATER_TEMP; break; + case D99_TEMP: + //calId = CAL_DATA_DIALYSATE_TEMP; + break; + default: // Set the calibration temperature value as num of meaning calibration is not needed for the provided sensor //calId = NUM_OF_CAL_DATA_TEMP_SENSORS;