From 57768f09ebbad1b900f80af0cf9b33d44af70cb2 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 3 Dec 2012 12:12:49 +0100 Subject: [PATCH] update ykdef flags for mode --- ykcore/ykdef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ykcore/ykdef.h b/ykcore/ykdef.h index 25171ac..36650a9 100644 --- a/ykcore/ykdef.h +++ b/ykcore/ykdef.h @@ -222,9 +222,9 @@ struct device_config_st { #define MODE_OTP 0x00 /* OTP only */ #define MODE_CCID 0x01 /* CCID only, no eject */ #define MODE_OTP_CCID 0x02 /* OTP + CCID composite */ -#define MODE_MASK 0x0f /* Mask for mode bits */ +#define MODE_MASK 0x03 /* Mask for mode bits */ -#define MODE_FLAG_EJECT 0x10 /* CCID device supports eject (mode 1 only) */ +#define MODE_FLAG_EJECT 0x80 /* CCID device supports eject (mode 1 only) */ #define DEFAULT_CHAL_TIMEOUT 15 /* Default challenge timeout in seconds */ -- 2.39.5