Skip to content

Commit

Permalink
update example to ignore errors in cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonieFierz committed Jan 29, 2025
1 parent f4af672 commit 244c79e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example-usage/scd4x_i2c_example_usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,16 @@ int main(void) {
error = scd4x_wake_up();
if (error != NO_ERROR) {
printf("error executing wake_up(): %i\n", error);
return error;
}
error = scd4x_stop_periodic_measurement();
if (error != NO_ERROR) {
printf("error executing stop_periodic_measurement(): %i\n", error);
return error;
}
error = scd4x_reinit();
if (error != NO_ERROR) {
printf("error executing reinit(): %i\n", error);
return error;
}

// Read out information about the sensor
error = scd4x_get_serial_number(serial_number, 3);
if (error != NO_ERROR) {
Expand Down

0 comments on commit 244c79e

Please sign in to comment.