fixed incorrect returned value of remainingPackets from xbee_conRx()