diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-02-07 13:36:09 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-02-07 13:36:09 +0000 |
commit | d7325c3aade440b5023752348a4476ae5355ff24 (patch) | |
tree | a4248f285d4e51b263a6916d798a800d9806f276 /src | |
parent | 78b73fb1a797a8c5bb5fdd7b9c152acf50081045 (diff) | |
download | enlightenment-d7325c3aade440b5023752348a4476ae5355ff24.tar.gz |
ddc - use return val of system to decide to usleep or not
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/system/e_system_ddc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/system/e_system_ddc.c b/src/bin/system/e_system_ddc.c index 842f9eac0a..830f439802 100644 --- a/src/bin/system/e_system_ddc.c +++ b/src/bin/system/e_system_ddc.c @@ -298,8 +298,8 @@ _ddc_init(void) // brute force modprobe this as it likely is needed - probe will fail // if this doesn't work or find devices anyway - system("modprobe i2c-dev"); - usleep(200 * 1000); // and wait for the module to come up... 200ms + if (system("modprobe i2c-dev") == 0) + usleep(200 * 1000); // and wait for the module to come up... 200ms if (!_ddc_probe()) return EINA_FALSE; |