Skip to content

Commit

Permalink
FsSD: remove uneeded ternary for debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzwald committed Jan 20, 2025
1 parent 76b76fa commit 2539fb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/FileSystem/fnFsSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,7 @@ bool FileSystemSDFAT::dir_open(const char * path, const char * pattern, uint16_t
);
bool filter_dirs = have_pattern && pattern[strlen(pattern)-1] == '/';
if (filter_dirs) {
Debug_printf (
"FileSystemSDFAT::dir_open I am filtering directories.\n",
have_pattern ? "" : " do not"
);
Debug_printf ("FileSystemSDFAT::dir_open I am filtering directories.\n");
strlcpy (realpat, pattern, sizeof (realpat));
realpat[strlen(realpat)-1] = '\0';
}
Expand Down

0 comments on commit 2539fb8

Please sign in to comment.