From 883d92bc167b4ff32fb2f46a3b71530664114ddc Mon Sep 17 00:00:00 2001 From: doraeric Date: Sat, 27 Jul 2024 23:03:53 +0800 Subject: [PATCH] Rename xboard function --- fw/Core/Hitcon/Logic/XBoardLogic.cc | 2 +- fw/Core/Hitcon/Logic/XBoardLogic.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fw/Core/Hitcon/Logic/XBoardLogic.cc b/fw/Core/Hitcon/Logic/XBoardLogic.cc index e6bf39d5..25905ce0 100644 --- a/fw/Core/Hitcon/Logic/XBoardLogic.cc +++ b/fw/Core/Hitcon/Logic/XBoardLogic.cc @@ -124,7 +124,7 @@ void XBoardLogic::Init() { g_xboard_service.SetOnByteRx((callback_t)&XBoardLogic::OnByteArrive, this); } -void XBoardLogic::QueuePacketForTx(uint8_t *packet, size_t packet_len) { +void XBoardLogic::QueueDataForTx(uint8_t *packet, size_t packet_len) { // TODO } diff --git a/fw/Core/Hitcon/Logic/XBoardLogic.h b/fw/Core/Hitcon/Logic/XBoardLogic.h index e1f73a5c..73ad8fb4 100644 --- a/fw/Core/Hitcon/Logic/XBoardLogic.h +++ b/fw/Core/Hitcon/Logic/XBoardLogic.h @@ -30,9 +30,8 @@ class XBoardLogic { void Init(); - // Call QueuePacketForTx() to queue a packet for transmission on - // the XBoard connection. - void QueuePacketForTx(uint8_t* packet, size_t packet_len); + // Encapsulate data into a packet and then put into the tx queue. + void QueueDataForTx(uint8_t* data, size_t data_len); // On detected connection from a remote board, this will be called. void SetOnConnect(callback_t callback, void* callback_arg1);