Re: Serial byte output prints two bytes after it reaches 0x7
Posted: Wed Jan 04, 2017 11:23 am
Could the issue be signed vs unsigned?
Found this online, where someone had a similar issue.
Might give it a go and see if that fixes the issue.
Found this online, where someone had a similar issue.
Code: Select all
byte unsignedByte( int val ) { return (byte)( val > 127 ? val - 256 : val ); }
Might give it a go and see if that fixes the issue.