From: "Adam Tofilski" <rotofils@cyf-kr.edu.pl>
To: <linux-gpio@vger.kernel.org>
Subject: libgpiod - bufor problem
Date: Fri, 26 Aug 2022 17:04:58 +0200 [thread overview]
Message-ID: <001901d8b95d$359a2060$a0ce6120$@edu.pl> (raw)
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
next reply other threads:[~2022-08-26 15:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-26 15:04 Adam Tofilski [this message]
2022-08-27 1:37 ` libgpiod - bufor problem Kent Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001901d8b95d$359a2060$a0ce6120$@edu.pl' \
--to=rotofils@cyf-kr.edu.pl \
--cc=linux-gpio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.