|
@@ -52,7 +52,6 @@ void picopass_scene_read_card_success_on_enter(void* context) {
|
|
|
|
|
|
|
|
if(pacs->se_enabled) {
|
|
if(pacs->se_enabled) {
|
|
|
furi_string_cat_printf(credential_str, "SE enabled");
|
|
furi_string_cat_printf(credential_str, "SE enabled");
|
|
|
-
|
|
|
|
|
} else if(!hid_csn) {
|
|
} else if(!hid_csn) {
|
|
|
furi_string_cat_printf(credential_str, "Non-HID CSN");
|
|
furi_string_cat_printf(credential_str, "Non-HID CSN");
|
|
|
}
|
|
}
|
|
@@ -69,6 +68,15 @@ void picopass_scene_read_card_success_on_enter(void* context) {
|
|
|
"More",
|
|
"More",
|
|
|
picopass_scene_read_card_success_widget_callback,
|
|
picopass_scene_read_card_success_widget_callback,
|
|
|
picopass);
|
|
picopass);
|
|
|
|
|
+ } else if(pacs->se_enabled) {
|
|
|
|
|
+ furi_string_cat_printf(credential_str, "SE enabled");
|
|
|
|
|
+ furi_string_cat_printf(wiegand_str, "SIO");
|
|
|
|
|
+ widget_add_button_element(
|
|
|
|
|
+ widget,
|
|
|
|
|
+ GuiButtonTypeRight,
|
|
|
|
|
+ "More",
|
|
|
|
|
+ picopass_scene_read_card_success_widget_callback,
|
|
|
|
|
+ picopass);
|
|
|
} else if(configCard) {
|
|
} else if(configCard) {
|
|
|
furi_string_cat_printf(wiegand_str, "Config Card");
|
|
furi_string_cat_printf(wiegand_str, "Config Card");
|
|
|
} else if(empty) {
|
|
} else if(empty) {
|
|
@@ -86,9 +94,6 @@ void picopass_scene_read_card_success_on_enter(void* context) {
|
|
|
} else {
|
|
} else {
|
|
|
furi_string_cat_printf(wiegand_str, "Invalid PACS");
|
|
furi_string_cat_printf(wiegand_str, "Invalid PACS");
|
|
|
}
|
|
}
|
|
|
- if(pacs->se_enabled) {
|
|
|
|
|
- furi_string_cat_printf(credential_str, "SE enabled");
|
|
|
|
|
- }
|
|
|
|
|
widget_add_button_element(
|
|
widget_add_button_element(
|
|
|
widget,
|
|
widget,
|
|
|
GuiButtonTypeCenter,
|
|
GuiButtonTypeCenter,
|
|
@@ -190,6 +195,10 @@ bool picopass_scene_read_card_success_on_event(void* context, SceneManagerEvent
|
|
|
consumed = scene_manager_search_and_switch_to_another_scene(
|
|
consumed = scene_manager_search_and_switch_to_another_scene(
|
|
|
picopass->scene_manager, PicopassSceneStart);
|
|
picopass->scene_manager, PicopassSceneStart);
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if(event.type == SceneManagerEventTypeBack) {
|
|
|
|
|
+ scene_manager_search_and_switch_to_previous_scene(
|
|
|
|
|
+ picopass->scene_manager, PicopassSceneStart);
|
|
|
|
|
+ consumed = true;
|
|
|
}
|
|
}
|
|
|
return consumed;
|
|
return consumed;
|
|
|
}
|
|
}
|