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.
Diff: DW1000/DW1000.cpp
- Revision:
- 31:6f76f3d518ac
- Parent:
- 29:019ff388ed76
- Child:
- 36:883de6f9a73b
--- a/DW1000/DW1000.cpp Fri Nov 28 17:06:51 2014 +0000
+++ b/DW1000/DW1000.cpp Mon Dec 01 13:04:18 2014 +0000
@@ -76,8 +76,7 @@
}
void DW1000::receiveString(char* message) {
- uint16_t framelength = getFramelength();
- readRegister(DW1000_RX_BUFFER, 0, (uint8_t*)message, framelength); // get data from buffer
+ readRegister(DW1000_RX_BUFFER, 0, (uint8_t*)message, getFramelength()); // get data from buffer
}
void DW1000::sendFrame(uint8_t* message, uint16_t length) {
