mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilibc] Fix GetUsbId on ExpansionHub in C++ (#8704)
This commit is contained in:
@@ -69,6 +69,10 @@ bool ExpansionHub::IsHubConnected() const {
|
||||
return m_dataStore->m_hubConnectedSubscriber.Get(false);
|
||||
}
|
||||
|
||||
int ExpansionHub::GetUsbId() const {
|
||||
return m_dataStore->m_usbId;
|
||||
}
|
||||
|
||||
bool ExpansionHub::CheckAndReserveServo(int channel) {
|
||||
int mask = 1 << channel;
|
||||
std::scoped_lock lock{m_dataStore->m_reservedLock};
|
||||
|
||||
Reference in New Issue
Block a user