diff --git a/src/Groundstation/Automated/Hub.cpp b/src/Groundstation/Automated/Hub.cpp index f77e4bcaf5406fa271946389038354f4fc01e5d3..51565c928904953d03fa6ae7d66b4aaa4aca5a8d 100644 --- a/src/Groundstation/Automated/Hub.cpp +++ b/src/Groundstation/Automated/Hub.cpp @@ -280,7 +280,7 @@ void Hub::dispatchIncomingMsg(const mavlink_message_t& msg) /* Messages older and within the discard interval are treated as old * messages*/ if (timestamp <= lastFlightTMTimestamp && - lastFlightTMTimestamp > timestamp + DISCARD_MSG_DELAY) + timestamp > lastFlightTMTimestamp - DISCARD_MSG_DELAY) return; TRACE( "[info][Radio/Sniffing] Hub: A FLIGHT_ROCKET_TM packet is valid " diff --git a/src/Groundstation/LyraGS/lyra-gs-entry.cpp b/src/Groundstation/LyraGS/lyra-gs-entry.cpp index 29a0fdef2900ea8db8ced03dfc31c57e1f253603..5cec13c85c1a8fa80bbfed7c496b8bfd0addc4a7 100644 --- a/src/Groundstation/LyraGS/lyra-gs-entry.cpp +++ b/src/Groundstation/LyraGS/lyra-gs-entry.cpp @@ -142,8 +142,8 @@ int main() LyraGS::RadioMain* radio_main = new LyraGS::RadioMain(dipRead.mainHasBackup, dipRead.mainTXenable); LyraGS::BoardStatus* board_status = new LyraGS::BoardStatus(dipRead.isARP); - LyraGS::EthernetGS* ethernet = - new LyraGS::EthernetGS(false, dipRead.ipConfig, ethernetSniffing); + LyraGS::EthernetGS* ethernet = new LyraGS::EthernetGS( + false, dipRead.ipConfig, dipRead.isARP & ethernetSniffing); EthernetSniffer* ethernetSniffer = new EthernetSniffer(); LyraGS::RadioPayload* radio_payload = new LyraGS::RadioPayload( dipRead.payloadHasBackup, dipRead.payloadTXenable);