Index: NVDataMgmt.c =================================================================== diff -u -redbf13cb7c1414fbac6ab4ff23a98dc12b9fbf8a -rea23e8c840303e50c31357d18704aa995949dad3 --- NVDataMgmt.c (.../NVDataMgmt.c) (revision edbf13cb7c1414fbac6ab4ff23a98dc12b9fbf8a) +++ NVDataMgmt.c (.../NVDataMgmt.c) (revision ea23e8c840303e50c31357d18704aa995949dad3) @@ -8,7 +8,7 @@ * @file NVDataMgmt.c * * @author (last) Dara Navaei -* @date (last) 19-Mar-2024 +* @date (last) 28-Apr-2024 * * @author (original) Dara Navaei * @date (original) 12-Feb-2020 @@ -130,7 +130,7 @@ #ifdef _HD_ #define DEFAULT_BLOOD_LEAK_SET_POINT 20 ///< Blood leak default set point. #define DEFAULT_HEPARIN_PUMP_VOLTAGE 0.15F ///< Heparin pump default voltage. -#define DEFAULT_ENABLE_CHEM_DISINFECT 1 ///< Enable chemical disinfect in institutional record. +#define DEFAULT_ENABLE_CHEM_DISINFECT 0 ///< Disable chemical disinfect in institutional record. #endif // DG specific defines @@ -938,9 +938,15 @@ BOOL scheduleStatus = enqueueSector0Records(); #ifdef _HD_ + MESSAGE_T institMsg; // Got new data for the EEPROM records, set the latest institutional record to treatment parameters to make sure // the treatment parameters have the record available all the time setNVInstitutionalRecordToTxParamsRecord( &hdInstitutionalGroup.hdInstitutionalRecord ); + + // Received new institutional record and it is valid, send it to the UI to be up to date + institMsg.hdr.msgID = 0; + institMsg.hdr.payloadLen = 0; + handleSendInstitutionalRecordToUI( &institMsg ); #endif // Signal that there is a new calibration record available. @@ -1534,7 +1540,7 @@ *************************************************************************/ BOOL isChemDisinfectEnabledInInstitRecord( void ) { - BOOL status = ( DEFAULT_ENABLE_CHEM_DISINFECT == hdInstitutionalGroup.hdInstitutionalRecord.enableChemicalDisinfect ? TRUE : FALSE ); + BOOL status = ( DEFAULT_ENABLE_CHEM_DISINFECT == hdInstitutionalGroup.hdInstitutionalRecord.enableChemicalDisinfect ? FALSE : TRUE ); return status; } @@ -1881,6 +1887,14 @@ newCalStartTimer = getMSTimerCount(); isNewCalAvailable = TRUE; nvDataMgmtSelfTestResult = SELF_TEST_STATUS_PASSED; + +#ifdef _HD_ + MESSAGE_T institMsg; + // Received new institutional record and it is valid, send it to the UI to be up to date + institMsg.hdr.msgID = 0; + institMsg.hdr.payloadLen = 0; + handleSendInstitutionalRecordToUI( &institMsg ); +#endif } else {