[prev in list] [next in list] [prev in thread] [next in thread]
List: rxtx
Subject: Re: [Rxtx] Parity problems
From: Gasper Pajor <gasper.pajor () cosylab ! com>
Date: 2005-01-26 10:20:34
Message-ID: 41F76EF2.5060906 () cosylab ! com
[Download RAW message or body]
Hi,
unfortunatly, this doesn't solve the problem :( I still get parity error.
But please don't give up with giving ideas :)
Regards,
Gasper Pajor
> I think I see the problem.
>
> I wonder if amodification like this in SerialImp.c:translate_parity()
> would solve the problem:
>
> int translate_parity( JNIEnv *env, tcflag_t *cflag, jint parity )
> {
> ENTER( "translate_parity" );
> #ifdef CMSPAR
> (*cflag) &= ~(PARENB | PARODD | CMSPAR );
> + #else
> + (*cflag) &= ~(PARENB | PARODD );
> #endif /* CMSPAR */
>
>
>
> It looks like CMSPAR is not defined on Linux so the PARODD was never
> getting cleared.
_______________________________________________
Rxtx mailing list
Rxtx@linuxgrrls.org
http://mailman.linuxgrrls.org/mailman/listinfo/rxtx
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic