spi:Print only device index (mask bus in _device

Print only the PX4_SPI_DEV_ID portion of the _device
This commit is contained in:
David Sidrane
2017-09-29 10:13:51 -04:00
committed by Daniel Agar
parent a5297074c6
commit c7823ffc58
+1 -1
View File
@@ -124,7 +124,7 @@ SPI::init()
}
/* tell the workd where we are */
DEVICE_LOG("on SPI bus %d at %d (%u KHz)", _bus, _device, _frequency / 1000);
DEVICE_LOG("on SPI bus %d at %d (%u KHz)", _bus, PX4_SPI_DEV_ID(_device), _frequency / 1000);
out:
return ret;