Skip to content

Commit

Permalink
fix(nfc): Send correct nfc error status to cysync
Browse files Browse the repository at this point in the history
  • Loading branch information
amanCypherock committed Oct 14, 2023
1 parent a844e8b commit 3e2176b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/manager_app/card_training.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
*****************************************************************************/

#include "check_pairing.h"
#include "common_error.h"
#include "flash_api.h"
#include "manager_api.h"
#include "onboarding.h"
Expand Down Expand Up @@ -143,7 +144,8 @@ void manager_card_training(manager_query_t *query) {
card_error_type_e status = card_check_pairing(&pair_result);
if (CARD_OPERATION_SUCCESS != status) {
LOG_SWV("%s (%d)\n", __func__, __LINE__);
manager_send_error(ERROR_COMMON_ERROR_CARD_ERROR_TAG, 1);
manager_send_error(ERROR_COMMON_ERROR_CARD_ERROR_TAG,
get_card_error_from_nfc_status(status));
return;
}
result.result.card_paired = pair_result.is_paired;
Expand Down

0 comments on commit 3e2176b

Please sign in to comment.