From 27febd942e883d30676e895296530f1d9db515db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=85=9F?= <41829660+payloadartist@users.noreply.github.com> Date: Sun, 8 Dec 2024 23:15:55 +0530 Subject: [PATCH] Add a warning in case any of the slots are not configured --- src/keys/drivers/YubiKeyInterfaceUSB.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/keys/drivers/YubiKeyInterfaceUSB.cpp b/src/keys/drivers/YubiKeyInterfaceUSB.cpp index fde232d6f..72554a263 100644 --- a/src/keys/drivers/YubiKeyInterfaceUSB.cpp +++ b/src/keys/drivers/YubiKeyInterfaceUSB.cpp @@ -151,6 +151,7 @@ YubiKey::KeyMap YubiKeyInterfaceUSB::findValidKeys() auto config = (slot == 1 ? CONFIG1_VALID : CONFIG2_VALID); if (!(ykds_touch_level(st) & config)) { // Slot is not configured + qWarning("YubiKey slot %d is not configured for %s", slot, serial); continue; } // Don't actually challenge a YubiKey Neo or below, they always require button press