Browse Source

Fix File creation bug

main
PaulStoffregen 9 years ago
parent
commit
b53b2910a9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp View File

@@ -236,8 +236,8 @@ static uint32_t string_length(uint32_t addr)
while (1) {
SerialFlash.read(addr, buf, sizeof(buf));
for (p=buf; p < buf + sizeof(buf); p++) {
if (*p == 0) return len;
len++;
if (*p == 0) return len;
}
addr += len;
}

Loading…
Cancel
Save