Skip to content

Commit

Permalink
Commands: Autocalibrate: Dont execute if ISO15693 codec uses autothre…
Browse files Browse the repository at this point in the history
…shold

Signed-off-by: cacke-r <cresch@gmx.de>
  • Loading branch information
cacke-r committed Feb 23, 2022
1 parent b8fec22 commit c686040
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Firmware/Chameleon-Mini/Terminal/Commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c686040

Please sign in to comment.