Le Thu, 16 Jul 2009 22:22:10 +0200,
Hans Petter Selasky <hsel...@c2i.net> a écrit :
Could you try to add an "if (sc->sc_fflags == 0)" in front, like this:
* Only read status while the device is not opened, due to
* possible hardware or firmware bug in some printers.
if (sc->sc_fflags == 0)
It works fine with this check. Cool!
But why, that is not clear. FreeBSD 7.2 checks the status of the
printer only when the device is opened and before each write.
Not related but I noticed that usb_write() in usb_dev.c returns -1
if I hit Ctrl-C when doing a "cat file > /dev/unlpt0". Because
usb_fifo_wait(f) returns -1 (should be EINTR?).
If cv_wait_sig() returns -1, then they do not behave like in the
Yes I saw, I will try to dig more into the code.
(will open a new thread for this)
Thank you very much, regards.
free...@freebsd.org mailing list
To unsubscribe, send any mail to "free...@freebsd.org"