summaryrefslogtreecommitdiffstats
path: root/serial_link/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'serial_link/protocol')
-rw-r--r--serial_link/protocol/frame_router.h2
-rw-r--r--serial_link/protocol/frame_validator.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/serial_link/protocol/frame_router.h b/serial_link/protocol/frame_router.h
index b5beba13c3..dd1bfb1230 100644
--- a/serial_link/protocol/frame_router.h
+++ b/serial_link/protocol/frame_router.h
@@ -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);
diff --git a/serial_link/protocol/frame_validator.c b/serial_link/protocol/frame_validator.c
index 0ffcda0473..0a5f05068e 100644
--- a/serial_link/protocol/frame_validator.c
+++ b/serial_link/protocol/frame_validator.c
@@ -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);
}
}
}