Index: leahi_dialin/common/dd_defs.py =================================================================== diff -u -r1a7cd1e4a5f691c12086e123bf9294166877a882 -rc04ab61e78056eb15d71ed1d2f5b1f49611c9252 --- leahi_dialin/common/dd_defs.py (.../dd_defs.py) (revision 1a7cd1e4a5f691c12086e123bf9294166877a882) +++ leahi_dialin/common/dd_defs.py (.../dd_defs.py) (revision c04ab61e78056eb15d71ed1d2f5b1f49611c9252) @@ -129,4 +129,18 @@ class DDBalancingChamberSwitchStates(DialinEnum): BAL_CHAMBER_SW_STATE1 = 0 # Balancing chamber switching state 1 (V2,V5 and V3, V8 open, rest closed) BAL_CHAMBER_SW_STATE2 = 1 # Balancing chamber switching state 2 ( V1,V6 and V4, V7 open, rest closed) - NUM_OF_BAL_CHAMBER_SW = 2 # Number of balancing chamber states \ No newline at end of file + NUM_OF_BAL_CHAMBER_SW = 2 # Number of balancing chamber states + +@unique +class BloodLeakStates(DialinEnum): + """ + DD blood leak embedded mode state machine states + """ + BLOOD_LEAK_WAIT_FOR_POST_STATE = 0 + BLOOD_LEAK_CHECK_SET_POINT_STATE = 1 + BLOOD_LEAK_INIT_STATE = 2 + BLOOD_LEAK_CHECK_ZERO_AND_SELF_TEST_STATE = 3 + BLOOD_LEAK_VERIFY_INTENSITY_AFTER_ZEROING_STATE = 4 + BLOOD_LEAK_NORMAL_STATE = 5 + BLOOD_LEAK_RECOVER_BLOOD_DETECT_STATE = 6 + NUM_OF_BLOOD_LEAK_STATES = 7 Index: leahi_dialin/dd/modules/blood_leak.py =================================================================== diff -u -r348768f8f1238dd306db3a686a4168219a818c2e -rc04ab61e78056eb15d71ed1d2f5b1f49611c9252 --- leahi_dialin/dd/modules/blood_leak.py (.../blood_leak.py) (revision 348768f8f1238dd306db3a686a4168219a818c2e) +++ leahi_dialin/dd/modules/blood_leak.py (.../blood_leak.py) (revision c04ab61e78056eb15d71ed1d2f5b1f49611c9252) @@ -25,22 +25,6 @@ D = 9 # Display set point C = 10 # Calibration command - -@unique -class BloodLeakStates(DialinEnum): - """ - DD blood leak embedded mode state machine states - """ - BLOOD_LEAK_WAIT_FOR_POST_STATE = 0 - BLOOD_LEAK_CHECK_SET_POINT_STATE = 1 - BLOOD_LEAK_INIT_STATE = 2 - BLOOD_LEAK_CHECK_ZERO_AND_SELF_TEST_STATE = 3 - BLOOD_LEAK_VERIFY_INTENSITY_AFTER_ZEROING_STATE = 4 - BLOOD_LEAK_NORMAL_STATE = 5 - BLOOD_LEAK_RECOVER_BLOOD_DETECT_STATE = 6 - NUM_OF_BLOOD_LEAK_STATES = 7 - - class DDBloodLeak(AbstractSubSystem): """ DDBloodLeak