From 28c4774561e78d88176b49b3991625b4052f4c35 Mon Sep 17 00:00:00 2001 From: cacke-r Date: Tue, 15 Feb 2022 20:15:15 +0100 Subject: [PATCH] Commands: Autocalibrate: Dont execute if ISO15693 codec uses autothreshold Signed-off-by: cacke-r --- Firmware/Chameleon-Mini/Terminal/Commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Firmware/Chameleon-Mini/Terminal/Commands.c b/Firmware/Chameleon-Mini/Terminal/Commands.c index 4f481b81..68581ef9 100644 --- a/Firmware/Chameleon-Mini/Terminal/Commands.c +++ b/Firmware/Chameleon-Mini/Terminal/Commands.c @@ -661,7 +661,10 @@ CommandStatusIdType CommandExecAutocalibrate(char *OutMessage) { } #endif #ifdef CONFIG_ISO15693_SNIFF_SUPPORT - if (GlobalSettings.ActiveSettingPtr->Configuration == CONFIG_ISO15693_SNIFF) { + /* Only execute autocalibration if the codec does not use autothreshold */ + /* It needs to be disabled by the AUTOTHRESHOLD=DISABLE command */ + if ((GlobalSettings.ActiveSettingPtr->Configuration == CONFIG_ISO15693_SNIFF) && + (SniffISO15693GetAutoThreshold() == false)){ ApplicationReset(); Sniff15693CurrentCommand = Sniff15693_Autocalibrate;