refactor: lf config renames

This commit is contained in:
douniwan5788 committed 2024-08-27 23:45:42 +08:00
1 parent 94063607ae
commit 112caec054
7 files changed
+15 -16

No files matched your search

+3 -3
View File
@@ -671,14 +671,14 @@ static int CmdFdxBReader(const char *Cmd) {
if (curr_div == LF_DIVISOR_125) {
config.divisor = LF_DIVISOR_134;
res = lf_config(&config);
res = lf_setconfig(&config);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "failed to change to 134 KHz LF configuration");
return res;
}
} else {
config.divisor = LF_DIVISOR_125;
res = lf_config(&config);
res = lf_setconfig(&config);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "failed to change to 125 KHz LF configuration");
return res;
@@ -694,7 +694,7 @@ static int CmdFdxBReader(const char *Cmd) {
if (old_div != curr_div) {
config.divisor = old_div;
res = lf_config(&config);
res = lf_setconfig(&config);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "failed to restore LF configuration");
return res;