From 6bef00254dd5299a966d73a5d6ab3ce561e93745 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 20 Feb 2012 23:25:10 +0100 Subject: [PATCH] xbee_recv: fix frame data pointer --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5