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:
parent
67611949dc
commit
6d092e9262
@ -115,7 +115,7 @@ serial_autodetect_devserial(detectone_func_t detectone, const char*prodname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char
|
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)
|
if (total_devices == MAX_DEVICES)
|
||||||
return 0;
|
return 0;
|
||||||
@ -123,7 +123,6 @@ _serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, aut
|
|||||||
struct string_elist *iter, *tmp;
|
struct string_elist *iter, *tmp;
|
||||||
const char*s;
|
const char*s;
|
||||||
bool inhibitauto = false;
|
bool inhibitauto = false;
|
||||||
bool forceauto = false;
|
|
||||||
char found = 0;
|
char found = 0;
|
||||||
|
|
||||||
list_for_each_entry_safe(iter, tmp, &scan_devices, list) {
|
list_for_each_entry_safe(iter, tmp, &scan_devices, list) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user