thatoneguy
- Joined Feb 19, 2009
- 6,359
I'm not sure if this is a typo, or what, but your code has some issues.
unsigned short bytr is in function, but never used, then you are using the byte keyword in the bit shifting.
If using byte, it will be signed. You should declare the universal u_int8 for an unsigned 8 bit number (or char in old school keywords).
Since you didn't post the updated code of what you changed to make it work, it's a bit hard to explain why it works now.
unsigned short bytr is in function, but never used, then you are using the byte keyword in the bit shifting.
If using byte, it will be signed. You should declare the universal u_int8 for an unsigned 8 bit number (or char in old school keywords).
Since you didn't post the updated code of what you changed to make it work, it's a bit hard to explain why it works now.