diff --git a/src/entrypoints/sx1278-mav-raw.cpp b/src/entrypoints/sx1278-mav-raw.cpp index 8915a25868ffeab4f3b2fa8acb7e571b5a6cc4a7..e2ceead2fe9b7434277a977e8980c82a1ee6e5bb 100644 --- a/src/entrypoints/sx1278-mav-raw.cpp +++ b/src/entrypoints/sx1278-mav-raw.cpp @@ -146,7 +146,7 @@ void recvLoop() while (1) { int len = sx1278->receive(msg, sizeof(msg)); - if (len > 0) + if (len == PACKET_SIZE) { mavlink_payload_flight_tm_t tm; memcpy(&tm, msg, PACKET_SIZE);