From 443f70dd65597c8bc29c62551bfd0ca1cfff7652 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 18 Jan 2013 18:14:59 +0100 Subject: [PATCH] Fix wrong condition to display a warning when user disables autoscan --- libnfc/nfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;