From 765e18e305abdf0eeb49e2153585be46bee597e5 Mon Sep 17 00:00:00 2001 From: Andreas Brauchli Date: Tue, 6 Nov 2018 13:03:20 +0100 Subject: [PATCH] Example usage: Add sleep between failed probes --- sgp30/sgp30_example_usage.c | 1 + sgpc3/sgpc3_example_usage.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sgp30/sgp30_example_usage.c b/sgp30/sgp30_example_usage.c index 7b34bf0..71c70d1 100644 --- a/sgp30/sgp30_example_usage.c +++ b/sgp30/sgp30_example_usage.c @@ -49,6 +49,7 @@ int main(void) { * a sensor. */ while (sgp_probe() != STATUS_OK) { /* printf("SGP sensor probing failed\n"); */ + /* sleep(1); */ } /* printf("SGP sensor probing successful\n"); */ diff --git a/sgpc3/sgpc3_example_usage.c b/sgpc3/sgpc3_example_usage.c index a6345bb..14e5926 100644 --- a/sgpc3/sgpc3_example_usage.c +++ b/sgpc3/sgpc3_example_usage.c @@ -49,6 +49,7 @@ int main(void) { * a sensor. */ while (sgp_probe() != STATUS_OK) { /* printf("SGP sensor probing failed\n"); */ + /* sleep(1); */ } /* printf("SGP sensor probing successful\n"); */