From d7325c3aade440b5023752348a4476ae5355ff24 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 7 Feb 2020 13:36:09 +0000 Subject: [PATCH] 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;