quackmaster,
There's another way to assemble a 16-bit integer from two 8-bit bytes:
union twobytes
{
int i;
byte b[2];
};
int assemble_bytes(byte b1,byte b2)
{
union twobytes t;
t.b[0] = b1;
t.b[1] = b2;
return(t.i);
}
I didn't try to compile this, so this may not be exactly correct, but you get the idea. Also, I'm not sure about the order of the bytes, so they may need to be switched around.
-Mike