mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 12:38:35 -07:00
fmt
This commit is contained in:
@@ -28,8 +28,8 @@ bool nfc_mf_ultralight_emulate_worker_callback(NfcWorkerEvent event, void* conte
|
|||||||
// Event data is only available for the duration of this callback, so we're updating the
|
// Event data is only available for the duration of this callback, so we're updating the
|
||||||
// text box right here
|
// text box right here
|
||||||
MfUltralightAuth* auth = nfc_worker_get_event_data(nfc->worker);
|
MfUltralightAuth* auth = nfc_worker_get_event_data(nfc->worker);
|
||||||
if(auth != NULL &&
|
if(auth != NULL && furi_string_size(nfc->text_box_store) <
|
||||||
furi_string_size(nfc->text_box_store) < NFC_SCENE_MF_ULTRALIGHT_EMULATE_LOG_SIZE_MAX) {
|
NFC_SCENE_MF_ULTRALIGHT_EMULATE_LOG_SIZE_MAX) {
|
||||||
furi_string_cat(nfc->text_box_store, "PWD:");
|
furi_string_cat(nfc->text_box_store, "PWD:");
|
||||||
for(size_t i = 0; i < sizeof(auth->pwd.raw); ++i) {
|
for(size_t i = 0; i < sizeof(auth->pwd.raw); ++i) {
|
||||||
furi_string_cat_printf(nfc->text_box_store, " %02X", auth->pwd.raw[i]);
|
furi_string_cat_printf(nfc->text_box_store, " %02X", auth->pwd.raw[i]);
|
||||||
|
|||||||
@@ -292,7 +292,8 @@ bool subghz_scene_read_raw_on_event(void* context, SceneManagerEvent event) {
|
|||||||
|
|
||||||
furi_string_printf(
|
furi_string_printf(
|
||||||
temp_str, "%s/%s%s", SUBGHZ_RAW_FOLDER, strings[0], SUBGHZ_APP_EXTENSION);
|
temp_str, "%s/%s%s", SUBGHZ_RAW_FOLDER, strings[0], SUBGHZ_APP_EXTENSION);
|
||||||
subghz_protocol_raw_gen_fff_data(subghz->txrx->fff_data, furi_string_get_cstr(temp_str));
|
subghz_protocol_raw_gen_fff_data(
|
||||||
|
subghz->txrx->fff_data, furi_string_get_cstr(temp_str));
|
||||||
furi_string_free(temp_str);
|
furi_string_free(temp_str);
|
||||||
|
|
||||||
if(spl_count > 0) {
|
if(spl_count > 0) {
|
||||||
|
|||||||
@@ -126,7 +126,8 @@ void namechanger_on_system_start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write header
|
// Write header
|
||||||
if(!flipper_format_write_header_cstr(file, furi_string_get_cstr(NAMEHEADER), 1)) {
|
if(!flipper_format_write_header_cstr(
|
||||||
|
file, furi_string_get_cstr(NAMEHEADER), 1)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +150,8 @@ void namechanger_on_system_start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Write name
|
//Write name
|
||||||
if(!flipper_format_write_string_cstr(file, "Name", furi_string_get_cstr(name))) {
|
if(!flipper_format_write_string_cstr(
|
||||||
|
file, "Name", furi_string_get_cstr(name))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user