File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ public sealed class UsbService : IUsbService
1010 public event Action < string > ? OnUsbDisconnected ;
1111
1212 private static readonly IUsbEventWatcher UsbEventWatcher = new UsbEventWatcher (
13- startImmediately : true ,
14- addAlreadyPresentDevicesToList : true ,
15- usePnPEntity : false ,
16- includeTTY : true ) ;
13+ startImmediately : true , // True - This part is obvious
14+ addAlreadyPresentDevicesToList : false , // False - This part is less obvious.
15+ // Don't check devices that are already plugged in! This will spam the refresh queue on launch
16+ usePnPEntity : false , // False - PnP entity is slower, overkill for our use case
17+ includeTTY : true ) ; // True - Legacy Babble Tracker show up under /dev/ttyACM*
1718
1819 private readonly TimeSpan _eventThrottleInterval = TimeSpan . FromSeconds ( 1 ) ;
1920 private DateTime _lastEventTime = DateTime . MinValue ;
You can’t perform that action at this time.
0 commit comments