fixed incorrect returned value of remainingPackets from xbee_conRx()
Merge branch 'master' into mingw32