1
0
Fork 0

Rename recv_frame to validator_recv_frame

This commit is contained in:
Fred Sundvik 2016-02-14 21:33:14 +02:00
parent 2a6696bd3d
commit 0eb62c4ce6
5 changed files with 38 additions and 36 deletions

View file

@ -102,7 +102,7 @@ static uint32_t crc32_byte(uint8_t *p, uint32_t bytelength)
return (crc ^ 0xffffffff);
}
void recv_frame(uint8_t* data, uint16_t size) {
void validator_recv_frame(uint8_t* data, uint16_t size) {
if (size > 4) {
uint32_t frame_crc = *(uint32_t*)(data + size - 4);
uint32_t expected_crc = crc32_byte(data, size - 4);