asad patel / stm-spirit1-rf-driver

Dependents:   DISCO_IOT-wifi_client

Fork of stm-spirit1-rf-driver by ST

Revision:
5:c9c5bc673c64
Parent:
0:4fb29d9ee571
diff -r 07537ca85c66 -r c9c5bc673c64 libs/spirit1/SPIRIT1_Library/Src/SPIRIT_PktBasic.c
--- a/libs/spirit1/SPIRIT1_Library/Src/SPIRIT_PktBasic.c	Tue Oct 18 07:06:12 2016 +0200
+++ b/libs/spirit1/SPIRIT1_Library/Src/SPIRIT_PktBasic.c	Tue Oct 18 11:45:43 2016 +0200
@@ -517,7 +517,6 @@
 
   /* Returns the packet length */
   return ((((uint16_t)tempRegValue[0])<<8) + (uint16_t) tempRegValue[1]) - overSize;
-
 }
 
 /**
@@ -540,9 +539,8 @@
   /* Reads the RX_PCKT_LENx registers value */
   g_xStatus = SpiritSpiReadRegisters(RX_PCKT_LEN1_BASE, 2, tempRegValue);
 
-  /* Rebuild and return the the length field */
-  return ((((uint16_t) tempRegValue[0]) << 8) + (uint16_t) tempRegValue[1] - overSize);
-
+  /* Rebuild and return the length field */
+  return (((((uint16_t) tempRegValue[0]) << 8) + (uint16_t) tempRegValue[1]) - overSize);
 }
 
 /**