There would be much easier for return code to be numbers above 0x7F. When parsing return data you dont know where the begining of block is.
0X65 0X00 0X02 0X01 0XFF 0XFF 0XFF is return code for touch event
0X70 0X65 0X37 0XFF 0XFF 0XFF is return code get text command for text "e7" (0x65, 0x37 ascii)
When parsing I have to check whole structure before decide what data are in buffer. When start of block is >0x7f then there is no problem
Consider about changing
I am now reviewing all of the Feature Requests, this will take some time, patience please.
- One difficulty for codes above 0x7F is it creates integer conversion issues
- in some systems these are now negative values.
This has not yet been implemented, but will be represented