1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Bugfix: Honour forceauto parameter in serial_detect functions

This commit is contained in:
Luke Dashjr 2012-06-13 16:47:47 +00:00
parent 67611949dc
commit 6d092e9262

View File

@ -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) {