Skip to content
Snippets Groups Projects
Commit f6175b7b authored by Thomas Eichinger's avatar Thomas Eichinger
Browse files

Merge pull request #1952 from OlegHahm/sc_iotlab_sensors_check

shell: sensors: exit on failure
parents 7b8ee959 f79e228e
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@ void _get_isl29020_read_handler(int argc, char **argv)
if (!isl29020_dev.address) {
puts("Error: please call `isl29020_init` first!");
return;
}
val = isl29020_read(&isl29020_dev);
......
......@@ -57,6 +57,7 @@ void _get_l3g4200d_read_handler(int argc, char **argv)
if (!l3g4200d_dev.addr) {
puts("Error: please call `l3g4200d_init` first!");
return;
}
res = l3g4200d_read(&l3g4200d_dev, &data);
......
......@@ -54,6 +54,7 @@ void _get_lps331ap_read_handler(int argc, char **argv)
if (!lps331ap_dev.address) {
puts("Error: please call `lps331ap_init` first!");
return;
}
temp = lps331ap_read_temp(&lps331ap_dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment