[Lcdproc] Crystalfontz 633/635 Packet Driver Endianness Issue
Russell Krayer
rkrayer@msn.com
Sun Sep 10 17:40:01 2006
Hi Peter,
Your fix in the nightly build seems to work - thanks for the quick response!
But now I think I am noticing other problems --- I will post again when I
can characterize it better.
Regards,
Russ
>From: Peter Marschall <peter@adpm.de>
>To: lcdproc@lists.omnipotent.net
>CC: "Russell Krayer" <rkrayer@msn.com>
>Subject: Re: [Lcdproc] Crystalfontz 633/635 Packet Driver Endianness Issue
>Date: Sat, 9 Sep 2006 22:18:55 +0200
>
>Hi Russell,
>
>On Saturday, 9. September 2006 17:10, Russell Krayer wrote:
> > I stumbled onto an issue with endianness running LCDproc 0.5.0 on a ppc
>box
> > (a big endian machine). The problem is in CFontz633io.c when working
>with
> > the CRC. I have a fix that is working for me and should still work with
> > little endian machines. Should I send a patch somewhere? Note, the bug
>is
> > also in the Crystalfontz example program from Crystalfontz vendor.
>
>Thanks for the patch you sent in your other post.
>
>I looked at it and the existing code and finally found that the idea of
>using a union for this conversion was a flawed concept.
>
>So I changed the code in CVS to convert manually between the
>CRC and the 2 bytes comprising it.
>This should fix the endiannes issue as the code now always expects / sends
>the LCB before the MSB.
>
>As a side note: unfortunately CF uses little-endian word order here.
>With big-endian, a simple htons() had been sufficient.
>
>The changes should be in tonight's nightly tar balls at
>http://lcdproc.sourceforge.net/nightly/lcdproc-CVS-current.tar.gz
>
>Please test if the changes work for you
>
>Peter
>
>--
>Peter Marschall
>peter@adpm.de
>_______________________________________________
>LCDproc mailing list
>LCDproc@lists.omnipotent.net
>http://lists.omnipotent.net/mailman/listinfo/lcdproc