Skip to content

Commit 0c371a2

Browse files
committed
Improves the detection of blank lines
1 parent bdec676 commit 0c371a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scenes/nfc_playlist_scene_emulation.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ int32_t nfc_playlist_emulation_task(void* context) {
3232

3333
char* file_path = (char*)furi_string_get_cstr(line);
3434

35-
if (strlen(file_path) <= 1) {continue;}
35+
if (strspn(file_path, " \t\n\r") == strlen(file_path)) {
36+
continue;
37+
}
3638

3739
if (nfc_playlist->settings.emulate_delay > 0 && file_position != 0 && !skip_delay) {
3840
popup_set_header(nfc_playlist->popup, "Delaying", 64, 10, AlignCenter, AlignTop);

0 commit comments

Comments
 (0)