Skip to content

Commit

Permalink
Merge pull request #32 from REVrobotics/fix/signedness
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahAndrews authored Sep 11, 2024
2 parents 2cd245c + b0a012f commit 2e98773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/native/include/rev/Drivers/DriverDeviceThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class DriverDeviceThread {
}
}

detail::CANThreadSendQueueElement* findFirstMatchingIdWithNonZeroInterval(int targetId) {
detail::CANThreadSendQueueElement* findFirstMatchingIdWithNonZeroInterval(uint32_t targetId) {
for (auto& element : m_sendQueue) {
if (element.m_msg.GetMessageId() == targetId && element.m_intervalMs > 0) {
return &element;
Expand All @@ -84,7 +84,7 @@ class DriverDeviceThread {
return nullptr; // If no matching element found
}

void removeElementsWithId(int targetId) {
void removeElementsWithId(uint32_t targetId) {
m_sendQueue.erase(std::remove_if(m_sendQueue.begin(), m_sendQueue.end(), [targetId](detail::CANThreadSendQueueElement element) { return element.m_msg.GetMessageId() == targetId; }), m_sendQueue.end());
}

Expand Down

0 comments on commit 2e98773

Please sign in to comment.