Skip to content

Commit f5c7513

Browse files
committed
update example usages
to continue on errors during sensor cleanup
1 parent 1301d28 commit f5c7513

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

example-scd41-single-shot/scd4x_i2c_example_scd41_single_shot.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,14 @@ int main(void) {
6262
error = scd4x_wake_up();
6363
if (error != NO_ERROR) {
6464
printf("error executing wake_up(): %i\n", error);
65-
return error;
6665
}
6766
error = scd4x_stop_periodic_measurement();
6867
if (error != NO_ERROR) {
6968
printf("error executing stop_periodic_measurement(): %i\n", error);
70-
return error;
7169
}
7270
error = scd4x_reinit();
7371
if (error != NO_ERROR) {
7472
printf("error executing reinit(): %i\n", error);
75-
return error;
7673
}
7774
// Read out information about the sensor
7875
error = scd4x_get_serial_number(serial_number, 3);

example-usage/scd4x_i2c_example_usage.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,14 @@ int main(void) {
6262
error = scd4x_wake_up();
6363
if (error != NO_ERROR) {
6464
printf("error executing wake_up(): %i\n", error);
65-
return error;
6665
}
6766
error = scd4x_stop_periodic_measurement();
6867
if (error != NO_ERROR) {
6968
printf("error executing stop_periodic_measurement(): %i\n", error);
70-
return error;
7169
}
7270
error = scd4x_reinit();
7371
if (error != NO_ERROR) {
7472
printf("error executing reinit(): %i\n", error);
75-
return error;
7673
}
7774
// Read out information about the sensor
7875
error = scd4x_get_serial_number(serial_number, 3);

0 commit comments

Comments
 (0)