UsbCamera: Allow silencing of Connecting message (#1231)

This commit is contained in:
Peter Johnson
2018-07-28 14:57:41 -07:00
committed by GitHub
parent 0614913f1a
commit 6b37ca9f9a
7 changed files with 49 additions and 5 deletions

View File

@@ -289,7 +289,7 @@ bool UsbCameraProperty::DeviceSet(std::unique_lock<wpi::mutex>& lock,
bool UsbCameraProperty::DeviceSet(std::unique_lock<wpi::mutex>& lock, int fd,
int newValue,
wpi::StringRef newValueStr) const {
if (fd < 0) return true;
if (!device || fd < 0) return true;
unsigned idCopy = id;
int rv = 0;