Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -rce3e0696642099164fa482c864509c67ce65579b -r78c03fb021407eaf8d17dd0f74f6969443b397ce --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision ce3e0696642099164fa482c864509c67ce65579b) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 78c03fb021407eaf8d17dd0f74f6969443b397ce) @@ -88,7 +88,7 @@ static OVERRIDE_U32_T dialInPumpOcclusion = {0, 0, 0, 0 }; ///< measured dialysate inlet pump occlusion pressure. static OVERRIDE_U32_T dialOutPumpOcclusion = {0, 0, 0, 0 }; ///< measured dialysate outlet pump occlusion pressure. -/// current pressure self-test state. +/// Current pressure self-test state. static PRESSURE_SELF_TEST_STATE_T presOcclSelfTestState = PRESSURE_SELF_TEST_STATE_START; static U32 bloodPumpSelfTestTimerCount = 0; ///< timer counter for pressure self-test. @@ -207,17 +207,17 @@ { PRESSURE_STATE_T result = PRESSURE_CONTINUOUS_READ_STATE; - // read latest in-line (arterial and venous) pressures + // Read latest in-line (arterial and venous) pressures convertInlinePressures(); - // read latest occlusion pressures + // Read latest occlusion pressures convertOcclusionPressures(); - // check in-line pressures are in range + // Check in-line pressures are in range checkArterialPressureInRange(); checkVenousPressureInRange(); - // check for occlusions + // Check for occlusions checkOcclusions(); return result; @@ -243,7 +243,7 @@ // TODO - any filtering required??? - // convert arterial pressure to mmHg if no alarm + // Convert arterial pressure to mmHg if no alarm if ( 0 == artPresAlarm ) { arterialPressure.data = ARTERIAL_PRESSURE_V_PER_BIT * ( (F32)(artPres) / ( ARTERIAL_PRESSURE_SENSITIVITY * ARTERIAL_PRESSURE_V_BIAS ) ); @@ -255,9 +255,9 @@ #endif } - // convert venous pressure to PSI + // Convert venous pressure to PSI venPresPSI = ( (F32)(venPres - VENOUS_PRESSURE_OFFSET) * (VENOUS_PRESSURE_MAX - VENOUS_PRESSURE_MIN) / (F32)VENOUS_PRESSURE_SCALE ) + VENOUS_PRESSURE_MIN; - // convert venous pressure from PSI to mmHg if sensor status is normal + // Convert venous pressure from PSI to mmHg if sensor status is normal if ( VENOUS_PRESSURE_NORMAL_OP == venPresStatus ) { venousPressure.data = venPresPSI * PSI_TO_MMHG; @@ -274,7 +274,7 @@ } } - // check for venous pressure sensor alarm or in wrong (cmd) mode + // Check for venous pressure sensor alarm or in wrong (cmd) mode if ( ( VENOUS_PRESSURE_DIAG_CONDITION == venPresStatus ) || ( VENOUS_PRESSURE_CMD_MODE == venPresStatus ) ) { #ifndef DISABLE_PRESSURE_CHECKS @@ -312,7 +312,7 @@ { F32 artPres = getMeasuredArterialPressure(); - // check arterial pressure during treatment mode + // Check arterial pressure during treatment mode if ( MODE_TREA == getCurrentOperationMode() ) { F32 artLowLimit = (F32)getTreatmentParameterS32( TREATMENT_PARAM_ART_PRESSURE_LOW_LIMIT ); @@ -337,7 +337,7 @@ { F32 venPres = getMeasuredVenousPressure(); - // check arterial pressure during treatment mode + // Check arterial pressure during treatment mode if ( MODE_TREA == getCurrentOperationMode() ) { F32 venLowLimit = (F32)getTreatmentParameterS32( TREATMENT_PARAM_VEN_PRESSURE_LOW_LIMIT );