1
0
Fork 0

Start implement router

This commit is contained in:
Fred Sundvik 2016-02-20 13:59:48 +02:00
parent 5a1600e24f
commit 4b9fccc756
8 changed files with 238 additions and 112 deletions

View file

@ -116,5 +116,5 @@ void validator_recv_frame(uint8_t link, uint8_t* data, uint16_t size) {
void validator_send_frame(uint8_t link, uint8_t* data, uint16_t size) {
uint32_t crc = crc32_byte(data, size);
memcpy(data + size, &crc, 4);
send_frame(link, data, size + 4);
byte_stuffer_send_frame(link, data, size + 4);
}