Fix wrong condition to display a warning when user disables autoscan
This commit is contained in:
parent
cbdac66fa4
commit
443f70dd65
1 changed files with 2 additions and 2 deletions
|
@ -265,8 +265,8 @@ nfc_list_devices(nfc_context *context, nfc_connstring connstrings[], const size_
|
|||
} // scan_type is INTRUSIVE but not allowed or NOT_AVAILABLE
|
||||
pndr++;
|
||||
}
|
||||
} else if (context->user_defined_device_count) {
|
||||
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_INFO, "Warning: %s" , "autoscan have been disabled but no other devices have bet set.");
|
||||
} else if (context->user_defined_device_count == 0) {
|
||||
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_INFO, "Warning: %s" , "user must specify device(s) manually when autoscan is disabled");
|
||||
}
|
||||
|
||||
return device_found;
|
||||
|
|
Loading…
Reference in a new issue