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:
parent
a631cc86ca
commit
825958d3e2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user