Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -r898f3f1ba7612909316ec33f59f74fed4e4f3652 -rbac52336ea9e23fc2dfb4a802afe49401dfb7057 --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 898f3f1ba7612909316ec33f59f74fed4e4f3652) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision bac52336ea9e23fc2dfb4a802afe49401dfb7057) @@ -52,8 +52,8 @@ #define MAX_ACTIVE_LOAD_CELL_CHANGE_G 50.0F ///< Maximum delta between new and previous measured UF volume. -// 3.07 + 12.28 has been received from the mechanical team and 5 mL of margine has been added for safety -#define DPI_TO_BLD_VOLUME_ML ( 3.07F + 12.28F + 5.0F ) ///< Dialysate inlet pump to blood detect sensor volume in milliliters. +// 3.07 + 12.28 has been received from the mechanical team and extra volume as margin has been added for safety +#define DPI_TO_BLD_VOLUME_ML ( 3.07F + 12.28F + 8.0F ) ///< Dialysate inlet pump to blood detect sensor volume in milliliters. /// Defined states for the Load Cell cycles. typedef enum Reservoir_Steady_Cycle @@ -182,7 +182,6 @@ resFinalRefVolume[ i ] = 0.0F; resCurrVolume[ i ] = 0.0F; resLastVolume[ i ] = 0.0F; - } resetSalineBolus(); @@ -525,6 +524,19 @@ /*********************************************************************//** * @brief + * The getBloodLeakZeroingState function gets the current blood leak zeroing + * state of the state machine. + * @details Inputs: bloodLeakZeroingStatus + * @details Outputs: none + * @return Current state of the blood leak zeroing state machine + *************************************************************************/ +BLOOD_LEAK_ZEROING_STATE_T getBloodLeakZeroingState( void ) +{ + return bloodLeakZeroingStatus.bloodLeakZeroingState; +} + +/*********************************************************************//** + * @brief * The getUltrafiltrationVolumeCollected function gets the current ultrafiltration * volume collected so far for current treatment. * @details Inputs: measUFVolume