Skip to content

Commit

Permalink
try sleep before stream on
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed May 30, 2024
1 parent 73c623c commit 06d19da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uvc-sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ void uvc_sensor::open( const stream_profiles & requests )

try
{
LOG_DEBUG("sleeping");
std::this_thread::sleep_for(std::chrono::milliseconds(100));
_device->stream_on( [&]( const notification & n ) { _notifications_processor->raise_notification( n ); } );
}
catch( ... )
Expand Down

0 comments on commit 06d19da

Please sign in to comment.