dscKeybusInterface icon indicating copy to clipboard operation
dscKeybusInterface copied to clipboard

Streamlined write function to add buffered data input

Open Dilbert66 opened this issue 3 years ago • 1 comments

Hi Nikhil, i've streamlined the write functions to a be a bit more efficient and more exandable. I've added a circular buffer (about 10 pending events) to allow non-blocking input of keys and request events to occur. I've also combined the alarm/key and module processing into one function that can handle all data types. This cleared a bit of code and simplified things. The system has no problem handling long sequences of keys at once.

Just thought I'd pass it on to you in case this is something that can work for you.

Dilbert66 avatar Apr 25 '22 22:04 Dilbert66

You can also remove the expander branch as that code is not current anymore. This version supersedes it.

Dilbert66 avatar Apr 25 '22 23:04 Dilbert66

Closed as code is obsoleted.

Dilbert66 avatar May 03 '23 19:05 Dilbert66