Skip to content
Snippets Groups Projects
Unverified Commit d23e540e authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

i2cdetect: retry i2c setup if it fails

parent 9bb31304
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment