Skip to content
Snippets Groups Projects
Commit 3a7cee2a authored by apvrille's avatar apvrille
Browse files

Merge branch 'master' of gitlab.enst.fr:mbe-tools/TTool

parents 9784cc71 f6da87b8
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ void sync_read( struct mwmr_s *fifo, void *_ptr, int lensw ){ ...@@ -29,7 +29,7 @@ void sync_read( struct mwmr_s *fifo, void *_ptr, int lensw ){
debugInt("debug fifo lock \n", fifo->status->lock); debugInt("debug fifo lock \n", fifo->status->lock);
i=mwmr_try_read(fifo,_ptr,lensw); i=mwmr_try_read(fifo,_ptr,lensw);
if(i>0) if(i>0)
mwmr_read(fifo,_ptr,lensw); mwmr_read(fifo,_ptr,(lensw-i));
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment