Index: firmware/App/Services/DDInterface.c =================================================================== diff -u -r927dfd6e109af46160e5aef687f1b7c286d24703 -r8254d0eaea0d25b62e41dc4189ec7cabbcf4c226 --- firmware/App/Services/DDInterface.c (.../DDInterface.c) (revision 927dfd6e109af46160e5aef687f1b7c286d24703) +++ firmware/App/Services/DDInterface.c (.../DDInterface.c) (revision 8254d0eaea0d25b62e41dc4189ec7cabbcf4c226) @@ -7,8 +7,8 @@ * * @file DDInterface.c * -* @author (last) Varshini Nagabooshanam -* @date (last) 15-Jun-2026 +* @author (last) Vijay Pamula +* @date (last) 19-Aug-2026 * * @author (original) Sean Nash * @date (original) 01-Aug-2024 @@ -461,6 +461,36 @@ /*********************************************************************//** * @brief + * The cmdChangeDialysateTemperature function sends a generate dialysate + * command to the DD with a given new dialysate temperature. + * @details \b Inputs: none + * @details \b Outputs: dialysateDeliveryCmdSet + * @details \b Message \b Sent: Continue generate dialysate command w/ new + * dialysate temperature. + * @param dialTemp Target dialysate temperature in deg C. + * @return none + *************************************************************************/ +void cmdChangeDialysateTemperature( F32 dialTemp ) +{ + if ( TRUE == dialysateDeliveryCmdSet.start ) + { + dialysateDeliveryCmdSet.dialTemp = dialTemp; + +#ifndef TEST_UI_ONLY + sendMessage( MSG_ID_DD_GEN_DIALYSATE_REQUEST_DATA, + COMM_BUFFER_OUT_CAN_TD_2_DD, + (U08*)(&dialysateDeliveryCmdSet), + sizeof( DIALYSATE_DELIVERY_REQ_PAYLOAD_T ) ); +#endif + } + else + { + // TODO - s/w fault? + } +} + +/*********************************************************************//** + * @brief * The cmdBypassDialyzer function sends a generate dialysate command to the DD * with a given flag indicating whether dialyzer should be bypassed. * @details \b Inputs: none @@ -616,7 +646,8 @@ { //dialysateDeliveryCmdSet.substitutionRate = qs; #ifndef TEST_UI_ONLY - sendMessage( MSG_ID_DD_GEN_DIALYSATE_REQUEST_DATA, COMM_BUFFER_OUT_CAN_TD_2_DD, (U08*)(&dialysateDeliveryCmdSet), sizeof( DIALYSATE_DELIVERY_REQ_PAYLOAD_T ) ); + sendMessage( MSG_ID_DD_GEN_DIALYSATE_REQUEST_DATA, COMM_BUFFER_OUT_CAN_TD_2_DD, + (U08*)(&dialysateDeliveryCmdSet), sizeof( DIALYSATE_DELIVERY_REQ_PAYLOAD_T ) ); #endif } else