Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4923

Troubleshooting • Re: LIRC and IR-KEYTABLE behavior issue

$
0
0
What you are describing makes me think of a couple problems.

#1 makes sure the buffers are flushed properly after each read. Make sure subsequent reads (without a press) never return previous character.

#2 what you said about incomplete read of the byte. I think this gets into start bits and stop bits. You need to properly detect the start and the stop of a byte. Flush all other data.

#3 python variables are funny. Make sure you are properly initializing a new chunk of memory and not reusing. Set it to a known nonzero value before reading the new data in. My thought is the read could be truncated or otherwise null and the result is nothing is written. Or some variation of that.

Hope that's helpful.

Statistics: Posted by loggiew — Thu Dec 12, 2024 2:35 pm



Viewing all articles
Browse latest Browse all 4923

Trending Articles