drivers/jc42 Minor formatting

This commit is contained in:
Koen Zandberg 2017-01-05 17:22:26 +01:00
parent 0f22e13ccb
commit 01092dd7ca
3 changed files with 7 additions and 8 deletions

View File

@ -63,13 +63,12 @@ void auto_init_jc42(void)
{ {
for (unsigned i = 0; i < JC42_NUMOF; i++) { for (unsigned i = 0; i < JC42_NUMOF; i++) {
const jc42_params_t *p = &jc42_params[i]; const jc42_params_t *p = &jc42_params[i];
if (jc42_init(&jc42_devs[i], if (jc42_init(&jc42_devs[i], (jc42_params_t*) p) < 0)
(jc42_params_t*) p) < 0) { {
LOG_ERROR("Unable to initialize jc42 sensor #%i\n", i); LOG_ERROR("Unable to initialize jc42 sensor #%i\n", i);
return; return;
} }
/* temperature */ /* temperature */
saul_entries[i].dev = &(jc42_devs[i]); saul_entries[i].dev = &(jc42_devs[i]);
saul_entries[i].name = jc42_saul_reg_info[i].name; saul_entries[i].name = jc42_saul_reg_info[i].name;