raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=d7325c3aade440b5023752348a4476ae5355ff24
commit d7325c3aade440b5023752348a4476ae5355ff24 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Fri Feb 7 13:36:09 2020 +0000 ddc - use return val of system to decide to usleep or not --- src/bin/system/e_system_ddc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/system/e_system_ddc.c b/src/bin/system/e_system_ddc.c index 842f9eac0..830f43980 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; --
