Index: dialin/hd/air_bubbles.py =================================================================== diff -u -r026abe7a8fa396fd21e5faa15af34b2d3587363d -r0a84621b0b0f807dd4019fa9ec44cc3efb7bb30a --- dialin/hd/air_bubbles.py (.../air_bubbles.py) (revision 026abe7a8fa396fd21e5faa15af34b2d3587363d) +++ dialin/hd/air_bubbles.py (.../air_bubbles.py) (revision 0a84621b0b0f807dd4019fa9ec44cc3efb7bb30a) @@ -75,6 +75,16 @@ return self.air_bubbles_status[index] + def get_air_bubble_state(self, index: int) -> int: + """ + Gets the given air bubble state using index 0 for ADA and index 1 for ADV. + + @param index: integer - 0 for getting ADA detector state, 1 for getting ADV detector state + @return: integer - air bubble state (0: init, 1: self-test, 2: normal) for given detector + """ + + return self.air_bubbles_state[index] + @_publish("air_bubbles_data") def _handler_air_bubbles_data_sync(self, message): """ Index: dialin/hd/blood_leak.py =================================================================== diff -u -refea63fad448f39b26755789684ada5683d67126 -r0a84621b0b0f807dd4019fa9ec44cc3efb7bb30a --- dialin/hd/blood_leak.py (.../blood_leak.py) (revision efea63fad448f39b26755789684ada5683d67126) +++ dialin/hd/blood_leak.py (.../blood_leak.py) (revision 0a84621b0b0f807dd4019fa9ec44cc3efb7bb30a) @@ -65,6 +65,14 @@ """ return self.blood_leak_status + def get_blood_leak_state(self): + """ + Gets the current blood leak state + + @return: integer - blood leak state (0: init, 1: zeroing, 2: self-test, 3: normal) + """ + return self.blood_leak_state + @_publish("blood_leak_status") def _handler_blood_leak_sync(self, message): """