|
@@ -89,14 +89,15 @@ int32_t nfc_playlist_emulation_task(void* context) {
|
|
|
int time_counter_ms =
|
|
int time_counter_ms =
|
|
|
(options_emulate_timeout[nfc_playlist->settings.emulate_timeout] * 1000);
|
|
(options_emulate_timeout[nfc_playlist->settings.emulate_timeout] * 1000);
|
|
|
|
|
|
|
|
- if(!strcasestr(furi_string_get_cstr(tmp_file_ext), ".nfc")) {
|
|
|
|
|
|
|
+ int ext_check = furi_string_cmpi_str(tmp_file_ext, ".nfc");
|
|
|
|
|
+ if(ext_check != 0 && ext_check != 10) {
|
|
|
if(nfc_playlist->settings.skip_error) {
|
|
if(nfc_playlist->settings.skip_error) {
|
|
|
skip_delay = true;
|
|
skip_delay = true;
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
furi_string_printf(
|
|
furi_string_printf(
|
|
|
tmp_header_str,
|
|
tmp_header_str,
|
|
|
- "ERROR invalid file:\n%s",
|
|
|
|
|
|
|
+ "ERROR invalid file type:\n%s",
|
|
|
furi_string_get_cstr(tmp_file_name));
|
|
furi_string_get_cstr(tmp_file_name));
|
|
|
popup_set_header(
|
|
popup_set_header(
|
|
|
nfc_playlist->popup,
|
|
nfc_playlist->popup,
|
|
@@ -125,7 +126,9 @@ int32_t nfc_playlist_emulation_task(void* context) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
furi_string_printf(
|
|
furi_string_printf(
|
|
|
- tmp_header_str, "ERROR not found:\n%s", furi_string_get_cstr(tmp_file_name));
|
|
|
|
|
|
|
+ tmp_header_str,
|
|
|
|
|
+ "ERROR file not found:\n%s",
|
|
|
|
|
+ furi_string_get_cstr(tmp_file_name));
|
|
|
popup_set_header(
|
|
popup_set_header(
|
|
|
nfc_playlist->popup,
|
|
nfc_playlist->popup,
|
|
|
furi_string_get_cstr(tmp_header_str),
|
|
furi_string_get_cstr(tmp_header_str),
|