diff --git a/libnfc/nfc.c b/libnfc/nfc.c index fd1300d..da84208 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -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;