aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-01-03 18:31:07 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-13 09:13:20 +0100
commitf9d3cfc493184b2aef837cf2edebdc8f7df118c4 (patch)
tree04dfeccfc86d4c673326c98e6c802c972ec1742f
parentc0d246e8e4130c3df7d16a97f7c749827be18b29 (diff)
downloadpx4-firmware-f9d3cfc493184b2aef837cf2edebdc8f7df118c4.tar.gz
px4-firmware-f9d3cfc493184b2aef837cf2edebdc8f7df118c4.tar.bz2
px4-firmware-f9d3cfc493184b2aef837cf2edebdc8f7df118c4.zip
SPI: Log device clock on startup
-rw-r--r--src/drivers/device/spi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/device/spi.cpp b/src/drivers/device/spi.cpp
index 200acac05..14f6d5706 100644
--- a/src/drivers/device/spi.cpp
+++ b/src/drivers/device/spi.cpp
@@ -123,7 +123,7 @@ SPI::init()
}
/* tell the workd where we are */
- log("on SPI bus %d at %d", _bus, _device);
+ log("on SPI bus %d at %d (%u KHz)", _bus, _device, _frequency / 1000);
out:
return ret;