8000 SD - examples/listfilesEnhanced by hasenradball · Pull Request #9206 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

SD - examples/listfilesEnhanced #9206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 20, 2024
Merged
Prev Previous commit
Next Next commit
adapt Pin
  • Loading branch information
hasenradball committed Nov 18, 2024
commit 033daf663d58f9bf92417d595fa47b7341888206
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
** MOSI - pin 11
** MISO - pin 12
** CLK - pin 13
** CS - pin 4

Check failure on line 14 in libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

View workflow job for this annotation

GitHub Actions / clang-format

Run tests/restyle.sh and re-commit libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

File libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino failed clang-format style check. (lines 14, 31, 66, 77, 112, 129)

created:

Expand All @@ -25,10 +25,10 @@
#include <SD.h>
#include <vector>

#define SD_CS_PIN 2
#define SD_CS_PIN 4


void dir(String path) {

Check failure on line 31 in libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

View workflow job for this annotation

GitHub Actions / clang-format

Run tests/restyle.sh and re-commit libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

File libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino failed clang-format style check. (lines 14, 31, 66, 77, 112, 129)
std::vector<String> directories;
collectDirectories(path, directories);
for (auto directory:directories) {
Expand Down Expand Up @@ -63,7 +63,7 @@
Serial.print("initialization successful.\n");
Serial.print("List Files:\n");
dir("/");
}

Check failure on line 66 in libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

View workflow job for this annotation

GitHub Actions / clang-format

Run tests/restyle.sh and re-commit libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

File libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino failed clang-format style check. (lines 14, 31, 66, 77, 112, 129)


void printDirectoryName(const char* name, uint8_t level) {
Expand All @@ -74,7 +74,7 @@
}



Check failure on line 77 in libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

View workflow job for this annotation

GitHub Actions / clang-format

Run tests/restyle.sh and re-commit libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

File libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino failed clang-format style check. (lines 14, 31, 66, 77, 112, 129)
// helper function: combine path
String joinPath(const String &base, const String &name) {
if (base.endsWith("/")) {
Expand Down Expand Up @@ -109,7 +109,7 @@
Serial.printf("%30s", file.name());
// files have sizes, directories do not
Serial.print(" - ");
Serial.print(file.size(), DEC);

Check failure on line 112 in libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

View workflow job for this annotation

GitHub Actions / clang-format

Run tests/restyle.sh and re-commit libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

File libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino failed clang-format style check. (lines 14, 31, 66, 77, 112, 129)
time_t cr = file.getCreationTime();
time_t lw = file.getLastWrite();
struct tm* tmstruct = localtime(&cr);
Expand All @@ -126,7 +126,7 @@
if (!file) {
// no more files
break;
}

Check failure on line 129 in libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

View workflow job for this annotation

GitHub Actions / clang-format

Run tests/restyle.sh and re-commit libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino

File libraries/SD/examples/listFilesEnhanced/listfilesEnhanced.ino failed clang-format style check. (lines 14, 31, 66, 77, 112, 129)
if (file.isDirectory()) {
continue;
}
Expand Down
Loading
0