Merge pull request #134 from m-dema/master

Exit eoe receive function if buffer is not valid
pull/138/head
nakarlsson 2022-09-27 18:23:37 +02:00 committed by GitHub
commit ac0031aef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -763,6 +763,12 @@ static void EOE_receive_fragment (void)
EOEvar.rxframeoffset = 0;
EOEvar.rxframeno = EOE_HDR_FRAME_NO_GET(frameinfo2);
}
else
{
DPRINT("Receive buffer is invalid\n");
EOE_init_rx ();
return;
}
}
/* In frame fragment received */
else