Skip to content

Commit 244c79e

Browse files
committed
update example to ignore errors in cleanup
1 parent f4af672 commit 244c79e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

example-usage/scd4x_i2c_example_usage.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,16 @@ 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
}
74+
7775
// Read out information about the sensor
7876
error = scd4x_get_serial_number(serial_number, 3);
7977
if (error != NO_ERROR) {

0 commit comments

Comments
 (0)