Index: leahi_dialin/fp/modules/events.py =================================================================== diff -u -r9a4413f84d7a0cfc1b43a9a5eff5c53c139a0883 -r979d1b0306253b980d6ac01dd6fcf632eef2145a --- leahi_dialin/fp/modules/events.py (.../events.py) (revision 9a4413f84d7a0cfc1b43a9a5eff5c53c139a0883) +++ leahi_dialin/fp/modules/events.py (.../events.py) (revision 979d1b0306253b980d6ac01dd6fcf632eef2145a) @@ -204,6 +204,11 @@ op_modes_list = self._event_dictionary[fp_enum_repository.FPEventList.FP_EVENT_OP_MODE_CHANGE.name] # If there are Op mode change messages, use it to determine the operation mode for the current submode change + # Index description: + # 0: Timestamp + # 1: Name + # 2: Previous Op / Sub Mode + # 3: Current Op / Sub Mode if len(op_modes_list) != 0: # Get the Sub Mode Change messages sub_mode_list = self._event_dictionary[fp_enum_repository.FPEventList.FP_EVENT_SUB_MODE_CHANGE.name] @@ -243,7 +248,12 @@ event_1_op_mode = self.UNKNOWN_STATE event_2_op_mode = self.UNKNOWN_STATE - # Go through the list starting from the back + # Go through the Operation Status Change message list starting from the back + # Index description: + # 0: Timestamp + # 1: Op Mode + # 2: Sub Mode + # 3: State for i in range(len(op_status_list) - 1, -1, -1): op_status_msg = op_status_list[i]