From e993cf3644945ccd5b3acf4453e9c79d4f73f48e Mon Sep 17 00:00:00 2001 From: Kano Date: Sun, 23 Jun 2013 10:01:18 +1000 Subject: [PATCH] bflsc try getinfo twice --- driver-bflsc.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/driver-bflsc.c b/driver-bflsc.c index c051c08b..b1570004 100644 --- a/driver-bflsc.c +++ b/driver-bflsc.c @@ -959,8 +959,17 @@ reinit: goto unshin; } - if (!getinfo(bflsc, 0)) - goto unshin; + int tries = 0; + while (7734) { + if (getinfo(bflsc, 0)) + break; + + // N.B. we will get displayed errors each time it fails + if (++tries > 2) + goto unshin; + + nmsleep(40); + } switch (sc_info->driver_version) { case BFLSC_DRV1: