Tobi's ubw test branch

Dependencies:   mavlink_bridge mbed

Fork of AIT_UWB_Range by Benjamin Hepp

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) {