Re: HD44780 serial driver

Markus Dolze <[email protected]>
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
On 22.10.2011 12:28, Matthias Kirchner wrote:
> Hello,
>
> I made a patch for the HD44780 serial driver, because LoS-Panel's
> keypad function did not work properly.
> A `diff` against the original hd44780-serial.c from lcdproc 0.5.4:
>
> 314a315
> >    unsigned char i,retval;
> 317c318
> <        if (buffer == SERIAL_IF.keypad_escape) {
> ---
> >        if (buffer == (SERIAL_IF.keypad_escape & 0xFF)) {
> 321c322,328
> <                       return buffer;
> ---
> >                       for ( i=3 ; i>=0 ; i-- ) {
> >                           if (( buffer % ( 1<<i )) == 0 ) {
> >                               retval = ((i<<4)+(buffer>>4))+0x11;
> >                                   break;
> >                                   }
> >                           }
> >                           return retval;
>
> That's the only file to be altered.
>
> The changes are working for me and Erik Brower (LoS-Panel's creator).
>
> Greetz,
> Matthias
> _______________________________________________
> LCDproc mailing list
> [email protected]
> http://lists.omnipotent.net/mailman/listinfo/lcdproc
>

Hi,

unfortunately I cannot use this patch. Please:

   1. Use unified diff format (diff -u)
   2. Attach the result as a file to your mail, not within the text part
      of your message.

Thank you,
Markus

_______________________________________________
LCDproc mailing list
[email protected]
http://lists.omnipotent.net/mailman/listinfo/lcdproc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.