From 5acc20fc47266fc316adaf0a27bbc2c4a676ebc9 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 6 Jun 2014 18:32:58 +0100 Subject: [PATCH] Improve code style --- cpu/cc2538/ieee-addr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/cc2538/ieee-addr.c b/cpu/cc2538/ieee-addr.c index 0e615f87e..e045d5d1d 100644 --- a/cpu/cc2538/ieee-addr.c +++ b/cpu/cc2538/ieee-addr.c @@ -54,7 +54,9 @@ ieee_addr_cpy_to(uint8_t *dst, uint8_t len) to flip the 2 parts */ int i; uint8_t oui_ti[3] = IEEE_ADDR_OUI_TI; - if(((uint8_t *)IEEE_ADDR_LOCATION)[3] == oui_ti[0] && ((uint8_t *)IEEE_ADDR_LOCATION)[2] == oui_ti[1] && ((uint8_t *)IEEE_ADDR_LOCATION)[1] == oui_ti[2]) { + if(((uint8_t *)IEEE_ADDR_LOCATION)[3] == oui_ti[0] + && ((uint8_t *)IEEE_ADDR_LOCATION)[2] == oui_ti[1] + && ((uint8_t *)IEEE_ADDR_LOCATION)[1] == oui_ti[2]) { for(i = 0; i < len / 2; i++) { dst[i] = ((uint8_t *)IEEE_ADDR_LOCATION)[len / 2 - 1 - i]; }