linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libgpiod - bufor problem
@ 2022-08-26 15:04 Adam Tofilski
  2022-08-27  1:37 ` Kent Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Tofilski @ 2022-08-26 15:04 UTC (permalink / raw)
  To: linux-gpio

Dear Bartosz
First of all thank you for gpiomon software.

I try to use if for data acquisition from an optical sensor. It works fine
from command line but when I try to run it as QProcess in QT (GUI) there is
a problem with buffering. The output is transferred occasionally in large
pieces. What I need is to get output immediately after each line. I plan to
distribute my software as open source.

As I understand this problem can be solved by adding to your code 
setbuf(stdout, NULL);
or 
fflush(stdout) 
after each line.

I hope you will be able to help me with this.
Best wishes
Adam

Adam Tofilski
Department of Zoology and Animal Welfare
Agricultural University
29 Listopada 56
31-425 Krakow
Poland
rotofils@cyf-kr.edu.pl
tel: +48 12 6625069



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-27  1:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 15:04 libgpiod - bufor problem Adam Tofilski
2022-08-27  1:37 ` Kent Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).