diff options
-rw-r--r-- | src/app/i2cdetect/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index 18800e5..b072347 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; |