diff options
-rw-r--r-- | src/app/bme680-max44009-logger/main.cc | 4 |
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; |