Skip to content

Commit

Permalink
update example usages
Browse files Browse the repository at this point in the history
to continue on errors during sensor cleanup
  • Loading branch information
LeonieFierz committed Jan 30, 2025
1 parent 1301d28 commit f5c7513
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,14 @@ 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);
Expand Down
3 changes: 0 additions & 3 deletions example-usage/scd4x_i2c_example_usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,14 @@ 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);
Expand Down

0 comments on commit f5c7513

Please sign in to comment.