mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
USBCamera: Update description on reconnect.
This commit is contained in:
@@ -687,6 +687,9 @@ void USBCameraImpl::DeviceConnect() {
|
||||
<< " address=" << m_buffers[i].m_data);
|
||||
}
|
||||
|
||||
// Update description (as it may have changed)
|
||||
SetDescription(GetDescriptionImpl(m_path.c_str()));
|
||||
|
||||
// Notify
|
||||
Notifier::GetInstance().NotifySource(*this, CS_SOURCE_CONNECTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user