summaryrefslogtreecommitdiff
path: root/src/app/bme680-max44009-logger
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/bme680-max44009-logger')
-rw-r--r--src/app/bme680-max44009-logger/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/bme680-max44009-logger/main.cc b/src/app/bme680-max44009-logger/main.cc
index 3634d30..8a3ce3a 100644
--- a/src/app/bme680-max44009-logger/main.cc
+++ b/src/app/bme680-max44009-logger/main.cc
@@ -139,9 +139,9 @@ int main(void)
ADCSRA = _BV(ADEN) | _BV(ADATE) | _BV(ADPS2) | _BV(ADPS1);
#endif
- if (i2c.setup() != 0) {
+ while (i2c.setup() != 0) {
kout << "# I2C setup failed" << endl;
- return 1;
+ arch.delay_ms(100);
}
kout << "# I2C setup OK" << endl;