From 5baa0c05575b41d88b7a5e41e33aec1d84fcebc7 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 28 Dec 2023 17:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9feite=E7=94=B5=E6=9C=BA?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=20=E5=8F=82=E6=95=B0=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/mini_servo_motor/feite_servo_motor.cpp | 2 +- components/mini_servo_motor/feite_servo_motor.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mini_servo_motor/feite_servo_motor.cpp b/components/mini_servo_motor/feite_servo_motor.cpp index f979319..7854a6c 100644 --- a/components/mini_servo_motor/feite_servo_motor.cpp +++ b/components/mini_servo_motor/feite_servo_motor.cpp @@ -22,7 +22,7 @@ static void dumphex(const char* tag, uint8_t* data, uint8_t len) { printf("\n"); #endif } -void FeiTeServoMotor::initialize(UART_HandleTypeDef* uart, DMA_HandleTypeDef* hdma_rx, DMA_HandleTypeDef* hdma_tx) { +void FeiTeServoMotor::initialize2(UART_HandleTypeDef* uart, DMA_HandleTypeDef* hdma_tx,DMA_HandleTypeDef* hdma_rx) { m_uart = uart; m_hdma_rx = hdma_rx; m_hdma_tx = hdma_tx; diff --git a/components/mini_servo_motor/feite_servo_motor.hpp b/components/mini_servo_motor/feite_servo_motor.hpp index f88e1fe..ca96bd1 100644 --- a/components/mini_servo_motor/feite_servo_motor.hpp +++ b/components/mini_servo_motor/feite_servo_motor.hpp @@ -128,7 +128,7 @@ class FeiTeServoMotor { zmutex m_mutex; public: - void initialize(UART_HandleTypeDef* uart, DMA_HandleTypeDef* hdma_rx, DMA_HandleTypeDef* hdma_tx); + void initialize2(UART_HandleTypeDef* uart, DMA_HandleTypeDef* hdma_tx,DMA_HandleTypeDef* hdma_rx); bool ping(uint8_t id); bool readversion(uint8_t id, uint8_t& mainversion, uint8_t& subversion, uint8_t& miniserv_mainversion, uint8_t& miniserv_subversion);