lib: made Probe configurable to suppress some common USB errors
commit59029e6e89465420729d726569214a5d4e33af34
authorChris Frey <cdfrey@foursquare.net>
Tue, 24 Jan 2012 08:27:18 +0000 (24 03:27 -0500)
committerChris Frey <cdfrey@foursquare.net>
Tue, 24 Jan 2012 08:27:18 +0000 (24 03:27 -0500)
treeae1fbcadb97e68992cb61d0ea3bd08e9989193f3
parent98784d53b222acf833854373e32f00776aac33ce
lib: made Probe configurable to suppress some common USB errors

If Probe cannot communicate with a device initially, this can throw
a Usb::Error exception.  This is not optimal if the device is busy
with another app, or if the device pemissions are incorrect.

This commit makes it configurable for the application to determine
which errors to log instead of throw on.
src/probe.cc
src/probe.h