I got caught by this too. http://arduino.cc/forum/index.php/topic,121141.0.html
I thought the intermediate result of intint was a long but it isn't. intint is int.
0xFF02 * 512 is 1024 because the high order word is lost.
Pete
I got caught by this too. http://arduino.cc/forum/index.php/topic,121141.0.html
I thought the intermediate result of intint was a long but it isn't. intint is int.
0xFF02 * 512 is 1024 because the high order word is lost.
Pete