From: Sam Moore Date: Wed, 30 Oct 2013 04:49:09 +0000 (+0800) Subject: Add usleep to strain.c just in case... X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6bc90047ed36b392d90a1bf778baf9687b835f2d;p=matches%2FMCTX3420.git Add usleep to strain.c just in case... Irrational fear of mutexes failing... --- diff --git a/server/sensors/strain.c b/server/sensors/strain.c index 7c78b56..64233e2 100644 --- a/server/sensors/strain.c +++ b/server/sensors/strain.c @@ -119,6 +119,9 @@ bool Strain_Read(int id, double * value) if (!GPIO_Set(gpio_num, false)) Fatal("Couldn't set GPIO%d for strain sensor %d to LOW (after reading)", gpio_num, id); + + usleep(200); + pthread_mutex_unlock(&mutex); return result;