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

i2cdetect: retry i2c setup if it fails

parent 9bb31304
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,9 +21,9 @@ int main(void)
	gpio.setup();
	kout.setup();

	if (i2c.setup() != 0) {
	while (i2c.setup() != 0) {
		kout << "I2C setup FAILED" << endl;
		return 1;
		arch.delay_ms(1000);
	}

	kout << "I2C setup OK" << endl;