Skip to content

Commit

Permalink
[Spinal][Kondo] modified name of a variant
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Feb 19, 2024
1 parent 2df8b60 commit a9ea102
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void KondoServo::update()

void KondoServo::receiveSendOnce(int id, uint16_t target_position)
{
if (is_receive_data)
if (is_receive_data_)
{
memset(pos_rx_buf_, 0, KONDO_POSITION_RX_SIZE);

Expand All @@ -69,7 +69,7 @@ void KondoServo::receiveSendOnce(int id, uint16_t target_position)
if (rx_ptr == KONDO_POSITION_RX_SIZE)
{
registerPos();
is_receive_data = false;
is_receive_data_ = false;
}
else
{
Expand All @@ -91,7 +91,7 @@ void KondoServo::receiveSendOnce(int id, uint16_t target_position)
if (ret == HAL_OK)
{
HAL_HalfDuplex_EnableReceiver(huart_);
is_receive_data = true;
is_receive_data_ = true;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class KondoServo

uint8_t id_telem_ = 0;
char* servo_name_ = "1234";
bool is_receive_data = false;
bool is_receive_data_ = false;

void receiveSendOnce(int id, uint16_t target_position);

Expand Down

0 comments on commit a9ea102

Please sign in to comment.