node_manager_fkie: fixed rate filter in echo dialog
@@ -354,7 +354,8 @@ class EchoDialog(QDialog):
self._count_messages(current_time)
# skip messages, if they are received often then MESSAGE_HZ_LIMIT
if self._last_received_ts != 0 and self.receiving_hz != 0:
- if (latched and current_time - self._start_time > 3.0) and current_time - self._last_received_ts < 1.0 / self.receiving_hz:
+ if current_time - self._last_received_ts < 1.0 / self.receiving_hz:
+ if (not latched or (latched and current_time - self._start_time > 3.0)):
self._scrapped_msgs += 1
self._scrapped_msgs_sl += 1
return
