forked from enlightenment/enlightenment
ddc - use return val of system to decide to usleep or not
This commit is contained in:
parent
78b73fb1a7
commit
d7325c3aad
|
@ -298,8 +298,8 @@ _ddc_init(void)
|
||||||
|
|
||||||
// brute force modprobe this as it likely is needed - probe will fail
|
// brute force modprobe this as it likely is needed - probe will fail
|
||||||
// if this doesn't work or find devices anyway
|
// if this doesn't work or find devices anyway
|
||||||
system("modprobe i2c-dev");
|
if (system("modprobe i2c-dev") == 0)
|
||||||
usleep(200 * 1000); // and wait for the module to come up... 200ms
|
usleep(200 * 1000); // and wait for the module to come up... 200ms
|
||||||
|
|
||||||
if (!_ddc_probe()) return EINA_FALSE;
|
if (!_ddc_probe()) return EINA_FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue