Index: leahi_dialin/td/modules/alarms.py =================================================================== diff -u -r47a803c6dd859a5bcc7a6c82e0cb160c350473ea -r791907258a7a4c789451e62745ae6d96f3f0fd24 --- leahi_dialin/td/modules/alarms.py (.../alarms.py) (revision 47a803c6dd859a5bcc7a6c82e0cb160c350473ea) +++ leahi_dialin/td/modules/alarms.py (.../alarms.py) (revision 791907258a7a4c789451e62745ae6d96f3f0fd24) @@ -159,6 +159,13 @@ self.alarm_data_type[event_data_type] = struct_unpack_type + def get_active_alarms(self): + result = [] + for alarm in AlarmList: + if self.alarm_states[alarm.value]: + result.append(alarm) + return result + def clear_dialin_alarms(self): """ Clears the alarms states in Dialin.