diff --git a/src/fprime_gds/common/history/chrono.py b/src/fprime_gds/common/history/chrono.py index 75b15456..d3c523af 100644 --- a/src/fprime_gds/common/history/chrono.py +++ b/src/fprime_gds/common/history/chrono.py @@ -160,7 +160,9 @@ def __insert_chrono(data_object, ordered): the index that the item was inserted at (int) """ for i, item in reversed(list(enumerate(ordered))): - if item.get_time() < data_object.get_time(): + # Note: for events with the exact same time, this should default to the order received from downlink + # and as such the data item should be treated as newer because it was received later. + if item.get_time() <= data_object.get_time(): ordered.insert(i + 1, data_object) return i # If the data object is the earliest in the list or the list was empty