Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/SD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@

namespace SDLib {

// Used by `getNextPathComponent`
#define MAX_COMPONENT_LEN 12 // What is max length?
#define PATH_COMPONENT_BUFFER_LEN MAX_COMPONENT_LEN+1
// Used by `getNextPathComponent`
#define MAX_COMPONENT_LEN 12
#define PATH_COMPONENT_BUFFER_LEN (MAX_COMPONENT_LEN + 1)
// BASENAME:char(8) + '.':char(1) + EXT:char(3) = 12 (a.k.a short 8.3 name)
// And an extra space for '\0' for path buffer

bool getNextPathComponent(const char *path, unsigned int *p_offset,
char *buffer) {
Expand Down