Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO_IOT-wifi_client
Fork of stm-spirit1-rf-driver by
Diff: libs/spirit1/SPIRIT1_Library/Src/SPIRIT_PktBasic.c
- Revision:
- 5:c9c5bc673c64
- Parent:
- 0:4fb29d9ee571
--- 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); } /**
