Skip to content

Commit

Permalink
upd picopass
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Dec 15, 2023
1 parent 6512b39 commit 40f2c0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion base_pack/picopass/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ App(
],
stack_size=4 * 1024,
fap_description="App to communicate with NFC tags using the PicoPass(iClass) format",
fap_version="1.9",
fap_version="1.10",
fap_icon="125_10px.png",
fap_category="NFC",
fap_libs=["mbedtls"],
Expand Down
3 changes: 2 additions & 1 deletion base_pack/picopass/scenes/picopass_scene_card_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ void picopass_scene_card_menu_on_enter(void* context) {
PicopassBlock* AA1 = picopass->dev->dev_data.AA1;

bool sio = 0x30 == AA1[PICOPASS_ICLASS_PACS_CFG_BLOCK_INDEX].data[0];
bool no_key = picopass_is_memset(pacs->key, 0x00, PICOPASS_BLOCK_LEN);

if(pacs->se_enabled) {
if(no_key) {
if(sio) {
submenu_add_item(
submenu,
Expand Down
13 changes: 7 additions & 6 deletions base_pack/picopass/scenes/picopass_scene_read_card_success.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ void picopass_scene_read_card_success_on_enter(void* context) {
if(pacs->se_enabled) {
furi_string_cat_printf(credential_str, "SE enabled");

widget_add_button_element(
widget,
GuiButtonTypeRight,
"More",
picopass_scene_read_card_success_widget_callback,
picopass);
} else if(!hid_csn) {
furi_string_cat_printf(credential_str, "Non-HID CSN");
}
Expand All @@ -68,6 +62,13 @@ void picopass_scene_read_card_success_on_enter(void* context) {
"Menu",
picopass_scene_read_card_success_widget_callback,
picopass);
widget_add_button_element(
widget,
GuiButtonTypeRight,
"More",
picopass_scene_read_card_success_widget_callback,
picopass);

} else if(empty) {
furi_string_cat_printf(wiegand_str, "Empty");
widget_add_button_element(
Expand Down

0 comments on commit 40f2c0e

Please sign in to comment.