Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r8a18b5d1fb4598c6b7facb3e7e233252941eaded -r7c8ec681f8c5dc44674893b5c3924a6203f2c8d0 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 8a18b5d1fb4598c6b7facb3e7e233252941eaded) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 7c8ec681f8c5dc44674893b5c3924a6203f2c8d0) @@ -62,6 +62,8 @@ // DG sensor data static F32 dgPressures[ NUM_OF_DG_PRESSURE_SENSORS ]; ///< Latest pressures reported by the DG. +static F32 dgDialysateTemp = 0.0; ///< Dialysate temperature reported by the DG. +static F32 dgRedundantDialysateTemp = 0.0; ///< Redundant dialysate temperature reported by the DG. static F32 dgPrimaryTempSet = 0.0; ///< Primary heater target temperature commanded. static F32 dgPrimaryTemp = 0.0; ///< Latest RO water temperature reported by the DG. static F32 dgTrimmerTempSet = 0.0; ///< Trimmer heater target temperature commanded. @@ -389,6 +391,23 @@ /*********************************************************************//** * @brief + * The setDialysateTemperatureReadings function sets the latest dialysate \n + * temperatures reported by the DG. + * @details + * Inputs : none + * Outputs : dgDialysateTemp, dgRedundantDialysateTemp + * @param temp1 : dialysate temperature reported by DG. + * @param temp2 : redundant dialysate temperature reported by DG. + * @return none + *************************************************************************/ +void setDialysateTemperatureReadings( F32 temp1, F32 temp2 ) +{ + dgDialysateTemp = temp1; + dgRedundantDialysateTemp = temp2; +} + +/*********************************************************************//** + * @brief * The setDGDialysateTemperatures function sets the latest temperature data \n * reported by the DG. * @details