1
0
Fork 0

Rename route_frame to route_incoming_frame

This commit is contained in:
Fred Sundvik 2016-02-14 21:34:40 +02:00
parent 0eb62c4ce6
commit f22d2543b1
3 changed files with 8 additions and 8 deletions

View file

@ -22,4 +22,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
void route_frame(uint8_t* data, uint16_t size);
void route_incoming_frame(uint8_t* data, uint16_t size);

View file

@ -107,7 +107,7 @@ void validator_recv_frame(uint8_t* data, uint16_t size) {
uint32_t frame_crc = *(uint32_t*)(data + size - 4);
uint32_t expected_crc = crc32_byte(data, size - 4);
if (frame_crc == expected_crc) {
route_frame(data, size-4);
route_incoming_frame(data, size-4);
}
}
}