Skip to content

Commit 9c64c39

Browse files
committed
New tag type select
1 parent 877a835 commit 9c64c39

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

fw/application/src/app/chameleon/port/tag_helper.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const static tag_specific_type_name_t tag_type_names[] = {
2727
{TAG_TYPE_MF0UL21,"UL21", "MF0UL21", MF0UL21_PAGES * NFC_TAG_NTAG_DATA_SIZE},
2828

2929
};
30+
3031
// typedef enum {
3132
// NFC_TAG_MF1_WRITE_NORMAL = 0u,
3233
// NFC_TAG_MF1_WRITE_DENIED = 1u,
@@ -50,9 +51,16 @@ const tag_specific_type_t hf_tag_specific_types[] = {
5051
TAG_TYPE_MIFARE_2048,
5152
TAG_TYPE_MIFARE_4096,
5253
// NTAG series
54+
TAG_TYPE_NTAG_210,
55+
TAG_TYPE_NTAG_212,
5356
TAG_TYPE_NTAG_213,
5457
TAG_TYPE_NTAG_215,
5558
TAG_TYPE_NTAG_216,
59+
60+
TAG_TYPE_MF0ICU1,
61+
TAG_TYPE_MF0ICU2,
62+
TAG_TYPE_MF0UL11,
63+
TAG_TYPE_MF0UL21
5664
};
5765

5866
tag_group_type_t tag_helper_get_tag_group_type(tag_specific_type_t tag_type) {

fw/application/src/app/chameleon/port/tag_helper.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
#include "nfc_mf1.h"
77
#include "tag_base_type.h"
88

9-
#define TAG_TYPE_MAX 9
10-
#define TAG_TYPE_HF_MAX 8
9+
#define TAG_TYPE_HF_MAX 13
1110
#define SLOT_MAX 8
1211

1312
typedef struct {

fw/application/src/app/chameleon/scene/chameleon_scene_menu_card_type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void chameleon_scene_menu_card_type_on_enter(void *user_data) {
6666
app_chameleon_t *app = user_data;
6767

6868
// 0 is unkown...
69-
for (uint32_t i = 1; i < TAG_TYPE_HF_MAX; i++) {
69+
for (uint32_t i = 1; i < TAG_TYPE_HF_MAX + 1; i++) {
7070
const tag_specific_type_name_t *tag_name = tag_helper_get_tag_type_name(hf_tag_specific_types[i]);
7171
mui_list_view_add_item(app->p_list_view, ICON_FILE, tag_name->long_name, (void *)CHAMELEON_MENU_CARD_TYPE);
7272
}

0 commit comments

Comments
 (0)