Index: dialin/squish/denaliMessages.py =================================================================== diff -u -r91dc90bd009bdbf5621dcaa1bc12ab3d691673f7 -ra9df49289acd7d4627f2ff49a329e69adbb866c7 --- dialin/squish/denaliMessages.py (.../denaliMessages.py) (revision 91dc90bd009bdbf5621dcaa1bc12ab3d691673f7) +++ dialin/squish/denaliMessages.py (.../denaliMessages.py) (revision a9df49289acd7d4627f2ff49a329e69adbb866c7) @@ -30,9 +30,11 @@ SALINE_BOLUS_STATE_MAX_DELIVERED = 3 # Maximum saline bolus volume reached - no more saline bolus deliveries allowed # UF states - # UI only cares about the actual state and _NOT could be any other state - UF_PAUSED_STATE_NOT = 0 - UF_PAUSED_STATE = 1 + UF_START_STATE = 0 # Start state of the ultrafiltration state machine + UF_PAUSED_STATE = 1 # Paused state of the ultrafiltration state machine + UF_RUNNING_STATE = 2 # Running state of the ultrafiltration state machine + UF_OFF_STATE = 3 # Completed/off state of the ultrafiltration state machine + UF_COMPLETED_STATE = 4 # Completed state of ultrafiltration state machine # Sub Mode # UI only cares about the actual state and _NOT could be any other state @@ -77,7 +79,8 @@ AdjustDurationReq = 22 AdjustDurationRsp = 27 - AdjustUltrafiltrationStateReq = 16 # Req and Rsp are the same in this specific message + AdjustUltrafiltrationStateReq = 16 + AdjustUltrafiltrationStateRsp = 65 AdjustUltrafiltrationEditReq = 17 AdjustUltrafiltrationEditRsp = 19 AdjustUltrafiltrationConfirmReq = 21 @@ -415,49 +418,60 @@ waitForMessageToBeSent() -def buildTreatmentAdjustUltrafiltrationStateResponse(vState): +def buildTreatmentAdjustUltrafiltrationStateResponse(vAccepted, vReason, vState): """ the Treatment ultrafiltration adjustment response message builder method - | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | #1:(U08) | - |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:-----------: |:--: | - |0x1000| 0x100 | 9 | Rsp | N | HD | UI | Generic response ACK/NAK | mAccepted | - :param vState: (-128