Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r3f4105248e6c49ab487ec065f9a4843d72a16a2a -r5738951cdfd7b1f7de0b880c082a02fd84d7ac49 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 3f4105248e6c49ab487ec065f9a4843d72a16a2a) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 5738951cdfd7b1f7de0b880c082a02fd84d7ac49) @@ -25,7 +25,7 @@ #include "ModeInitPOST.h" #include "ModeTreatment.h" #include "ModeTreatmentParams.h" -#include "OperationModes.h" +#include "OperationModes.h" #include "PersistentAlarm.h" #include "SystemComm.h" #include "SystemCommMessages.h" @@ -58,12 +58,12 @@ // ********** private data ********** -// DG status -static DG_OP_MODE_T dgCurrentOpMode; ///< Current DG operation mode. +// DG status +static DG_OP_MODE_T dgCurrentOpMode; ///< Current DG operation mode. static U32 dgSubMode; ///< Current state (sub-mode) of current DG operation mode. -static BOOL dgStartCommandSent; ///< Flag indicates command to start DG has been sent. -static BOOL dgStarted; ///< Flag indicates whether we have commanded the DG to start or stop. -static BOOL dgTrimmerHeaterOn; ///< Flag indicates whether we have commanded the DG to start or stop the trimmer heater. +static BOOL dgStartCommandSent; ///< Flag indicates command to start DG has been sent. +static BOOL dgStarted; ///< Flag indicates whether we have commanded the DG to start or stop. +static BOOL dgTrimmerHeaterOn; ///< Flag indicates whether we have commanded the DG to start or stop the trimmer heater. // DG sensor data static F32 dgDialysateTemp; ///< Dialysate temperature reported by the DG. @@ -125,12 +125,12 @@ U32 i, j; // NOTE: the active reservoir is set to reservoir 1 since DG will send active reservoir 1 as active on power up - dgStarted = FALSE; - dgTrimmerHeaterOn = FALSE; + dgStarted = FALSE; + dgTrimmerHeaterOn = FALSE; dgTrimmerTempSet = 0.0F; - dgTrimmerTempCheckTimerCtr = 0; - dgActiveReservoirSet = DG_RESERVOIR_2; - dgActiveReservoir = DG_RESERVOIR_2; + dgTrimmerTempCheckTimerCtr = 0; + dgActiveReservoirSet = DG_RESERVOIR_1; + dgActiveReservoir = DG_RESERVOIR_1; dgDialysateTemp = 0.0F; dgCurrentOpMode = DG_MODE_INIT; dgSubMode = 0; @@ -459,14 +459,14 @@ /*********************************************************************//** * @brief - * The getDialysateTemperature function gets the latest dialysate temperature. - * @details Inputs: dgDialysateTemp + * The getDGDisinfectsStates function returns the DG disinfects readings. + * @details Inputs: none * @details Outputs: none - * @return the latest dialysate temperature + * @return the current DG disinfects readings *************************************************************************/ -F32 getDialysateTemperature( void ) +DG_DISINFECT_UI_STATES_T getDGDisinfectsStates( void ) { - return dgDialysateTemp; + return disinfectsStatus; } /*********************************************************************//** @@ -510,14 +510,14 @@ /*********************************************************************//** * @brief - * The getDGDisinfectsStates function returns the DG disinfects readings. - * @details Inputs: disinfectsStatus + * The getDialysateTemperature function returns the DG dialysate temperature. + * @details Inputs: dgDialysateTemp * @details Outputs: none - * @return the current DG disinfects readings + * @return the latest dialysate temperature *************************************************************************/ -DG_DISINFECT_UI_STATES_T getDGDisinfectsStates( void ) +F32 getDialysateTemperature( void ) { - return disinfectsStatus; + return dgDialysateTemp; } /*********************************************************************//** Index: firmware/App/Controllers/DGInterface.h =================================================================== diff -u -r3f4105248e6c49ab487ec065f9a4843d72a16a2a -r5738951cdfd7b1f7de0b880c082a02fd84d7ac49 --- firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 3f4105248e6c49ab487ec065f9a4843d72a16a2a) +++ firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 5738951cdfd7b1f7de0b880c082a02fd84d7ac49) @@ -122,6 +122,7 @@ F32 getHeatDisinfectTemperatureSensorValue( void ); BOOL getTrimmerHeaterCommandedOn( void ); DG_DISINFECT_UI_STATES_T getDGDisinfectsStates( void ); +F32 getDialysateTemperature( void ); DG_MIXING_RATIOS_T getDGMixingRatios( void ); void getHDVersionDGServiceAndUsageData( DG_SERVICE_AND_USAGE_DATA_T* data ); Index: firmware/App/HDCommon.h =================================================================== diff -u -r3f842dec3434368f98cdea8c1ada41988b7a7fbc -r5738951cdfd7b1f7de0b880c082a02fd84d7ac49 --- firmware/App/HDCommon.h (.../HDCommon.h) (revision 3f842dec3434368f98cdea8c1ada41988b7a7fbc) +++ firmware/App/HDCommon.h (.../HDCommon.h) (revision 5738951cdfd7b1f7de0b880c082a02fd84d7ac49) @@ -10,8 +10,8 @@ * @author (last) Sean Nash * @date (last) 24-Aug-2023 * -* @author (original) Sean -* @date (original) 27-Feb-2020 +* @author (original) Sean +* @date (original) 27-Feb-2020 * ***************************************************************************/ @@ -25,7 +25,7 @@ #define HD_VERSION_MAJOR 0 #define HD_VERSION_MINOR 6 #define HD_VERSION_MICRO 0 -#define HD_VERSION_BUILD 237 +#define HD_VERSION_BUILD 721 // ********** development build switches ********** Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r3f4105248e6c49ab487ec065f9a4843d72a16a2a -r5738951cdfd7b1f7de0b880c082a02fd84d7ac49 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 3f4105248e6c49ab487ec065f9a4843d72a16a2a) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 5738951cdfd7b1f7de0b880c082a02fd84d7ac49) @@ -5526,6 +5526,7 @@ if ( sizeof( TEST_OVERRIDE_PAYLOAD_T ) == message->hdr.payloadLen ) { memcpy( &payload, message->payload, sizeof( TEST_OVERRIDE_PAYLOAD_T ) ); + if ( FALSE == payload.reset ) { result = testSetBatteryRemainingCapacityOverride( payload.state.f32 ); Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -r3f4105248e6c49ab487ec065f9a4843d72a16a2a -r5738951cdfd7b1f7de0b880c082a02fd84d7ac49 --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 3f4105248e6c49ab487ec065f9a4843d72a16a2a) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 5738951cdfd7b1f7de0b880c082a02fd84d7ac49) @@ -947,9 +947,6 @@ // MSG_ID_HD_SEND_BLOOD_LEAK_EMB_MODE_RESPONSE BOOL sendBloodLeakEmbeddedModeCommandResponse( U08 cmd, U32 responseLen, U08* response ); -// MSG_ID_HD_SEND_ALARMS_COMMAND -void handleResendAllAlarmsCommand( MESSAGE_T* message ); - // MSG_ID_HD_BLOOD_PUMP_SET_PWM void handleTestBloodPumpSetPWM( MESSAGE_T* message );