Skip to content

Commit

Permalink
Merge branch 'fix-example-usage-clean-up' into 'master'
Browse files Browse the repository at this point in the history
Stop measurement when example usage finished

See merge request MSO-SW/drivers/embedded/embedded-i2c-sdp!2
  • Loading branch information
MBjoern committed Aug 31, 2021
2 parents 74b70c4 + 1c6af34 commit ce287c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdp_i2c_example_usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,11 @@ int main(void) {
}
}

error = sdp_stop_continuous_measurement();
if (error) {
printf("Error executing sdp_stop_continuous_measurement(): %i\n",
error);
}

return 0;
}

0 comments on commit ce287c1

Please sign in to comment.