Package: libieee1284
Version: 0.2.10-8

Hi,

I had a problem in my program where it did
ieee1284_negotiate(M1284_NIBBLE) but I didn't check the return
value, and then just called ieee1284_nibble_read().
ieee1284_nibble_read() returns -1 (as expected), I think errno is
set to EAGAIN.  But the problem is that the next time I do
ieee1284_negotiate() and it is succesful, ieee1284_nibble_read()
still returns -1.

It seems that when calling ieee1284_nibble_read() (using ppdev) it
always does:
   set_mode (port, M1284_NIBBLE, 0, 0);

I think the problem is doing the ioctl(PPSETMODE) and that it shouldn't
be doing that until the negotiation was succesful.

You could argue that this isn't exactly a bug in libieee1284,
but it would be nice that it didn't set the mode until it
was properly negotiated.


Kurt




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to