Index: firmware/App/Modes/ModePostTreat.c =================================================================== diff -u -r5d182b5d0c3ec20904cde60dc950d57948e4b189 -r17b1e8df35d294dfa84a6ee9c23c1b4de956c4e9 --- firmware/App/Modes/ModePostTreat.c (.../ModePostTreat.c) (revision 5d182b5d0c3ec20904cde60dc950d57948e4b189) +++ firmware/App/Modes/ModePostTreat.c (.../ModePostTreat.c) (revision 17b1e8df35d294dfa84a6ee9c23c1b4de956c4e9) @@ -26,6 +26,7 @@ #include "PresOccl.h" #include "ModePostTreat.h" #include "ModeTreatmentParams.h" +#include "SystemCommMessages.h" #include "Timers.h" #include "Valves.h" @@ -60,6 +61,8 @@ static HD_POST_TREATMENT_STATE_T currentPostTreatmentState; ///< Current state of post-treatment mode state machine. static DRAIN_STATE_T currentDrainReservoirState; ///< Current drain reservoir state. +static TREATMENT_LOG_DATA_PAYLOAD_T treatmentLogData; ///< Treatment parameters record for logging. + // ********** private function prototypes ********** static HD_POST_TREATMENT_STATE_T handlePostTreatmentPatientDisconnectionState( void ); @@ -86,6 +89,8 @@ isDrainStarted = FALSE; currentPostTreatmentState = HD_POST_TREATMENT_PATIENT_DISCONNECTION_STATE; currentDrainReservoirState = DRAIN_RESERVOIR_ONE_STATE; + + memset( &treatmentLogData, 0x0, sizeof( TREATMENT_LOG_DATA_PAYLOAD_T ) ); } /*********************************************************************//** @@ -123,6 +128,9 @@ // TODO: Enable when have syringe pump driver // stopSyringePump(); + + // Send treatment log data to UI + sendTreatmentLogData( &treatmentLogData ); } /*********************************************************************//**