mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 12:38:35 -07:00
Fix Assets
This commit is contained in:
@@ -20,7 +20,7 @@ void lfrfid_scene_extra_actions_on_enter(void* context) {
|
|||||||
|
|
||||||
submenu_add_item(
|
submenu_add_item(
|
||||||
submenu,
|
submenu,
|
||||||
"Read ASK (FDX,Regular)",
|
"Read ASK (Animal, FDX)",
|
||||||
SubmenuIndexASK,
|
SubmenuIndexASK,
|
||||||
lfrfid_scene_extra_actions_submenu_callback,
|
lfrfid_scene_extra_actions_submenu_callback,
|
||||||
app);
|
app);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "../nfc_i.h"
|
#include "../nfc_i.h"
|
||||||
|
#include "../../../settings/desktop_settings/desktop_settings_app.h"
|
||||||
|
|
||||||
#define NFC_SCENE_EMULATE_NFCV_LOG_SIZE_MAX (100)
|
#define NFC_SCENE_EMULATE_NFCV_LOG_SIZE_MAX (100)
|
||||||
|
|
||||||
@@ -37,7 +38,15 @@ static void nfc_scene_emulate_nfcv_widget_config(Nfc* nfc, bool data_received) {
|
|||||||
FuriString* info_str;
|
FuriString* info_str;
|
||||||
info_str = furi_string_alloc();
|
info_str = furi_string_alloc();
|
||||||
|
|
||||||
|
DesktopSettings* settings = malloc(sizeof(DesktopSettings));
|
||||||
|
DESKTOP_SETTINGS_LOAD(settings);
|
||||||
|
|
||||||
|
if(settings->sfw_mode) {
|
||||||
|
widget_add_icon_element(widget, 0, 3, &I_RFIDDolphinSend_97x61_sfw);
|
||||||
|
} else {
|
||||||
widget_add_icon_element(widget, 0, 3, &I_RFIDDolphinSend_97x61);
|
widget_add_icon_element(widget, 0, 3, &I_RFIDDolphinSend_97x61);
|
||||||
|
}
|
||||||
|
|
||||||
widget_add_string_element(
|
widget_add_string_element(
|
||||||
widget, 89, 32, AlignCenter, AlignTop, FontPrimary, "Emulating NfcV");
|
widget, 89, 32, AlignCenter, AlignTop, FontPrimary, "Emulating NfcV");
|
||||||
if(strcmp(nfc->dev->dev_name, "")) {
|
if(strcmp(nfc->dev->dev_name, "")) {
|
||||||
@@ -55,6 +64,7 @@ static void nfc_scene_emulate_nfcv_widget_config(Nfc* nfc, bool data_received) {
|
|||||||
widget_add_button_element(
|
widget_add_button_element(
|
||||||
widget, GuiButtonTypeCenter, "Log", nfc_scene_emulate_nfcv_widget_callback, nfc);
|
widget, GuiButtonTypeCenter, "Log", nfc_scene_emulate_nfcv_widget_callback, nfc);
|
||||||
}
|
}
|
||||||
|
free(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nfc_scene_emulate_nfcv_on_enter(void* context) {
|
void nfc_scene_emulate_nfcv_on_enter(void* context) {
|
||||||
|
|||||||
@@ -66,7 +66,15 @@ void nfc_scene_mf_ultralight_emulate_widget_config(Nfc* nfc, bool auth_attempted
|
|||||||
FuriString* info_str;
|
FuriString* info_str;
|
||||||
info_str = furi_string_alloc();
|
info_str = furi_string_alloc();
|
||||||
|
|
||||||
widget_add_icon_element(widget, 0, 3, &I_RFIDDolphinSend_97x61);
|
DesktopSettings* settings = malloc(sizeof(DesktopSettings));
|
||||||
|
DESKTOP_SETTINGS_LOAD(settings);
|
||||||
|
|
||||||
|
if(settings->sfw_mode) {
|
||||||
|
widget_add_icon_element(widget, 0, 3, &I_NFC_dolphin_emulation_47x61_sfw);
|
||||||
|
} else {
|
||||||
|
widget_add_icon_element(widget, 0, 3, &I_NFC_dolphin_emulation_47x61);
|
||||||
|
}
|
||||||
|
|
||||||
if(strcmp(nfc->dev->dev_name, "")) {
|
if(strcmp(nfc->dev->dev_name, "")) {
|
||||||
furi_string_printf(info_str, "Emulating\n%s", nfc->dev->dev_name);
|
furi_string_printf(info_str, "Emulating\n%s", nfc->dev->dev_name);
|
||||||
} else {
|
} else {
|
||||||
@@ -84,6 +92,7 @@ void nfc_scene_mf_ultralight_emulate_widget_config(Nfc* nfc, bool auth_attempted
|
|||||||
nfc_scene_mf_ultralight_emulate_widget_callback,
|
nfc_scene_mf_ultralight_emulate_widget_callback,
|
||||||
nfc);
|
nfc);
|
||||||
}
|
}
|
||||||
|
free(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nfc_scene_mf_ultralight_emulate_on_enter(void* context) {
|
void nfc_scene_mf_ultralight_emulate_on_enter(void* context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user