diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-25 09:02:08 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 09:07:52 +0200 |
commit | 3c76006541a521f5ce0a3ba47c0a9949c7eb50c4 (patch) | |
tree | cd0b4b9b732daae932a87475bff907a71b218ab4 /src/drivers/boards/px4fmu-v1/px4fmu_init.c | |
parent | 346798b129b9f13b511e04ff61679951625865a5 (diff) | |
download | px4-firmware-3c76006541a521f5ce0a3ba47c0a9949c7eb50c4.tar.gz px4-firmware-3c76006541a521f5ce0a3ba47c0a9949c7eb50c4.tar.bz2 px4-firmware-3c76006541a521f5ce0a3ba47c0a9949c7eb50c4.zip |
Board drivers: Only print if init fails
Diffstat (limited to 'src/drivers/boards/px4fmu-v1/px4fmu_init.c')
-rw-r--r-- | src/drivers/boards/px4fmu-v1/px4fmu_init.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/boards/px4fmu-v1/px4fmu_init.c b/src/drivers/boards/px4fmu-v1/px4fmu_init.c index 293021f8b..c7d4f1ce4 100644 --- a/src/drivers/boards/px4fmu-v1/px4fmu_init.c +++ b/src/drivers/boards/px4fmu-v1/px4fmu_init.c @@ -216,8 +216,6 @@ __EXPORT int nsh_archinitialize(void) SPI_SELECT(spi1, PX4_SPIDEV_MPU, false); up_udelay(20); - message("[boot] Successfully initialized SPI port 1\r\n"); - /* * If SPI2 is enabled in the defconfig, we loose some ADC pins as chip selects. * Keep the SPI2 init optional and conditionally initialize the ADC pins @@ -243,7 +241,6 @@ __EXPORT int nsh_archinitialize(void) /* Get the SPI port for the microSD slot */ - message("[boot] Initializing SPI port 3\n"); spi3 = up_spiinitialize(3); if (!spi3) { @@ -252,8 +249,6 @@ __EXPORT int nsh_archinitialize(void) return -ENODEV; } - message("[boot] Successfully initialized SPI port 3\n"); - /* Now bind the SPI interface to the MMCSD driver */ result = mmcsd_spislotinitialize(CONFIG_NSH_MMCSDMINOR, CONFIG_NSH_MMCSDSLOTNO, spi3); @@ -263,7 +258,5 @@ __EXPORT int nsh_archinitialize(void) return -ENODEV; } - message("[boot] Successfully bound SPI port 3 to the MMCSD driver\n"); - return OK; } |