Skip to content

Commit 92d6798

Browse files
committed
update example to ignore errors in cleanup
1 parent f4af672 commit 92d6798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example-usage/scd4x_i2c_example_usage.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ 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
}
66+
6767
error = scd4x_stop_periodic_measurement();
6868
if (error != NO_ERROR) {
6969
printf("error executing stop_periodic_measurement(): %i\n", error);
70-
return error;
7170
}
71+
7272
error = scd4x_reinit();
7373
if (error != NO_ERROR) {
7474
printf("error executing reinit(): %i\n", error);
75-
return error;
7675
}
76+
7777
// Read out information about the sensor
7878
error = scd4x_get_serial_number(serial_number, 3);
7979
if (error != NO_ERROR) {

0 commit comments

Comments
 (0)