mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 00:58:36 -07:00
Fix Assets
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "../nfc_i.h"
|
||||
#include "../../../settings/desktop_settings/desktop_settings_app.h"
|
||||
|
||||
#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;
|
||||
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_RFIDDolphinSend_97x61_sfw);
|
||||
} else {
|
||||
widget_add_icon_element(widget, 0, 3, &I_RFIDDolphinSend_97x61);
|
||||
}
|
||||
|
||||
widget_add_string_element(
|
||||
widget, 89, 32, AlignCenter, AlignTop, FontPrimary, "Emulating NfcV");
|
||||
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, GuiButtonTypeCenter, "Log", nfc_scene_emulate_nfcv_widget_callback, nfc);
|
||||
}
|
||||
free(settings);
|
||||
}
|
||||
|
||||
void nfc_scene_emulate_nfcv_on_enter(void* context) {
|
||||
|
||||
Reference in New Issue
Block a user