mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 22:43:33 +08:00
Clarification in TransferReceiver
This commit is contained in:
@@ -75,7 +75,7 @@ bool TransferReceiver::validate(const RxFrame& frame) const
|
||||
registerError();
|
||||
return false;
|
||||
}
|
||||
if (frame.isStartOfTransfer() && (buffer_write_pos_ != 0))
|
||||
if (frame.isStartOfTransfer() && isMidTransfer())
|
||||
{
|
||||
UAVCAN_TRACE("TransferReceiver", "Unexpected start of transfer, %s", frame.toString().c_str());
|
||||
registerError();
|
||||
|
||||
Reference in New Issue
Block a user