From 6d092e92621ae5aa0ce8461132be7462743f5ad5 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 13 Jun 2012 16:47:47 +0000 Subject: [PATCH] Bugfix: Honour forceauto parameter in serial_detect functions --- fpgautils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fpgautils.c b/fpgautils.c index 39f3abd3..68753056 100644 --- a/fpgautils.c +++ b/fpgautils.c @@ -115,7 +115,7 @@ serial_autodetect_devserial(detectone_func_t detectone, const char*prodname) } char -_serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, autoscan_func_t autoscan, bool force_autoscan) +_serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, autoscan_func_t autoscan, bool forceauto) { if (total_devices == MAX_DEVICES) return 0; @@ -123,7 +123,6 @@ _serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, aut struct string_elist *iter, *tmp; const char*s; bool inhibitauto = false; - bool forceauto = false; char found = 0; list_for_each_entry_safe(iter, tmp, &scan_devices, list) {