Skip to content

Commit

Permalink
available修正
Browse files Browse the repository at this point in the history
  • Loading branch information
eyr1n committed Oct 28, 2024
1 parent ae6bb69 commit ae30a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ bool CAN::receive(CANMessage *msg, uint32_t timeout) {
return osMessageQueueGet(rx_queue_, msg, nullptr, timeout) == osOK;
}

size_t CAN::available() { return osMessageQueueGetCapacity(rx_queue_); }
size_t CAN::available() { return osMessageQueueGetCount(rx_queue_); }

} // namespace tutrc_harurobo_lib

Expand Down
2 changes: 1 addition & 1 deletion src/fdcan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool FDCAN::receive(CANMessage *msg, uint32_t timeout) {
return osMessageQueueGet(rx_queue_, msg, nullptr, timeout) == osOK;
}

size_t FDCAN::available() { return osMessageQueueGetCapacity(rx_queue_); }
size_t FDCAN::available() { return osMessageQueueGetCount(rx_queue_); }

} // namespace tutrc_harurobo_lib

Expand Down

0 comments on commit ae30a91

Please sign in to comment.