Unverified Commit e3db2c4c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

bme680-bsec-logger: retry i2c setup

parent 4e89a03b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;