1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/auto_init: unified logging for mma8x5x

This commit is contained in:
Hauke Petersen 2017-01-20 09:05:57 +01:00
parent a631cc86ca
commit 825958d3e2

View File

@ -53,8 +53,10 @@ extern saul_driver_t mma8x5x_saul_driver;
void auto_init_mma8x5x(void)
{
for (unsigned i = 0; i < MMA8X5X_NUM; i++) {
LOG_DEBUG("[auto_init_saul] initializing mma8x5x #%u\n", i);
if (mma8x5x_init(&mma8x5x_devs[i], &mma8x5x_params[i]) != MMA8X5X_OK) {
LOG_ERROR("Unable to initialize MMA8x5x sensor #%i\n", i);
LOG_ERROR("[auto_init_saul] error initializing mma8x5x #%u\n", i);
return;
}