diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index 18800e54880c587e9981ae8db9bfdf9a7a613a74..b07234710f0242331dd92fd410eff8769d6daa55 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -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;