Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -r61716bc97ecca8af1ec560333844a8cf602eccb0 -r61c6f9386e49c5f03792b82d3e6c9bacc98d384a --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 61716bc97ecca8af1ec560333844a8cf602eccb0) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 61c6f9386e49c5f03792b82d3e6c9bacc98d384a) @@ -21,6 +21,7 @@ #include "HDCommon.h" #include "HDDefs.h" #include "Dialysis.h" +#include "TaskGeneral.h" /** * @defgroup HDTreatmentMode HDTreatmentMode @@ -92,6 +93,11 @@ F32 avgVenousPressure; } TREATMENT_LOG_DATA_PERIODIC_T; +/// Maximum time in this mode before blood sitting alarm given (in general task intervals). +#define MAX_TIME_BLOOD_SITTING ( ( 5 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) +/// Maximum time in this mode before blood sitting warning given (in general task intervals). +#define WARN_TIME_BLOOD_SITTING ( ( 4 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) + // ********** public function prototypes ********** void initTreatmentMode( void ); // Initialize this module