From: Fabrice Desclaux Date: Mon, 20 Feb 2012 22:25:10 +0000 (+0100) Subject: xbee_recv: fix frame data pointer X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6bef00254dd5299a966d73a5d6ab3ce561e93745;p=protos%2Fxbee-avr.git xbee_recv: fix frame data pointer --- diff --git a/main.c b/main.c index f0174a2..272090f 100644 --- a/main.c +++ b/main.c @@ -231,7 +231,7 @@ int xbee_recv_data(struct xbee_recv_hdr *recvframe, unsigned len) break; case RC_PROTO_TYPE_RANGE: { struct rc_proto_range *rcr = - (struct rc_proto_range *) recvframe; + (struct rc_proto_range *) recvframe->data; if (datalen != sizeof(struct rc_proto_range)) return -1;