# Re: SANE 1.00 breaks on Solaris v2.6

David Mosberger-Tang (David.Mosberger@acm.org)
Mon, 30 Nov 1998 21:26:44 -0800

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: David Mosberger-Tang: "Re: Genius parallel port scanner"
- Previous message: Bert van Leeuwen: "Genius parallel port scanner"

>>>>> On Sun, 29 Nov 1998 21:57:10 +0100 (CET), Hugo van der Kooij <hvdkooij@caiw.nl> said:

Hugo> Hi, After a few glitches I finaly got stuck with the following
Hugo> error:

Hugo> dc210.c:344: `TCSBRKP' undeclared (first use this function)

While I don't have a DC210 camera myself, can someone test the
following patch to see whether it fixes the compilation problem?

--- backend/dc210.c~ Sat Nov 21 20:18:48 1998
+++ backend/dc210.c Mon Nov 30 21:23:07 1998
@@ -341,7 +341,11 @@
}
/* send a break to get it back to a known state */
+#if 0
ioctl (camera->fd, TCSBRKP, 4);
+#else
+ tcsendbreak (camera->fd, 4);
+#endif
/* and wait for it to recover from the break */
usleep (breakpause);
Brian, can you think of (and test) a workaround that will let the
camera operate even if TCSBRKP and tcsendbreak() are not available?

--david

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

- Next message: David Mosberger-Tang: "Re: Genius parallel port scanner"
- Previous message: Bert van Leeuwen: "Genius parallel port scanner"