Handle final empty packet
Handle the case where the master sends a final empty packet to indicate end of transferpull/3/head
parent
6fbb2f7dae
commit
df1718894a
|
@ -493,6 +493,12 @@ void FOE_data ()
|
|||
DPRINT("FOE_data packet error,packet: %d foeheaader.packet: %d\n",packet,FOEvar.foepacket);
|
||||
FOE_abort (FOE_ERR_PACKETNO);
|
||||
}
|
||||
else if (data_len == 0)
|
||||
{
|
||||
DPRINT("FOE_data completed\n");
|
||||
res = FOE_send_ack ();
|
||||
FOE_init ();
|
||||
}
|
||||
else if (FOEvar.fposition + data_len > FOEvar.fend)
|
||||
{
|
||||
DPRINT("FOE_data disk full\n");
|
||||
|
|
Loading…
Reference in New Issue