From 1cafbc6002b641fbe3769997210a84692a6b67e9 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 9 Sep 2009 21:08:46 +0000 Subject: [PATCH] sdcc compiler issue fix: compound assignments are not supported, so we use memcpy() instead --- core/net/mac/frame802154.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/mac/frame802154.c b/core/net/mac/frame802154.c index 3eea0bfc8..af2db6074 100644 --- a/core/net/mac/frame802154.c +++ b/core/net/mac/frame802154.c @@ -44,7 +44,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: frame802154.c,v 1.2 2009/04/09 21:54:09 nifi Exp $ + * $Id: frame802154.c,v 1.3 2009/09/09 21:08:46 adamdunkels Exp $ */ /* * \brief This file is where the main functions that relate to frame @@ -274,7 +274,7 @@ frame802154_parse(uint8_t *data, uint8_t len, frame802154_t *pf) fcf.src_addr_mode = (p[1] >> 6) & 3; /* copy fcf and seqNum */ - pf->fcf = fcf; + memcpy(&pf->fcf, &fcf, sizeof(frame802154_fcf_t)); pf->seq = p[2]; p += 3; /* Skip first three bytes */