From 1c6af343d5a1a45fe9e8106ee3143bce4eb3fdfd Mon Sep 17 00:00:00 2001 From: Bjoern Muntwyler Date: Mon, 30 Aug 2021 17:14:32 +0200 Subject: [PATCH] Stop measurement when example usage finished --- sdp_i2c_example_usage.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdp_i2c_example_usage.c b/sdp_i2c_example_usage.c index 01bccb3..52bf4de 100644 --- a/sdp_i2c_example_usage.c +++ b/sdp_i2c_example_usage.c @@ -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; } \ No newline at end of file