mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-02 22:54:58 -04:00
Cleanup
This commit is contained in:
parent
6189bfe636
commit
a0bf9a34b3
4 changed files with 3 additions and 49 deletions
48
Console.h
48
Console.h
|
@ -160,50 +160,4 @@ void console_loop(){
|
|||
// Internally, this yields the thread and allows
|
||||
// other tasks to run.
|
||||
delay(2);
|
||||
}
|
||||
|
||||
// void listDir(fs::FS &fs, const char * dirname, uint8_t levels){
|
||||
// Serial.printf("Listing directory: %s\r\n", dirname);
|
||||
|
||||
// File root = fs.open(dirname);
|
||||
// if(!root){
|
||||
// Serial.println("- failed to open directory");
|
||||
// return;
|
||||
// }
|
||||
// if(!root.isDirectory()){
|
||||
// Serial.println(" - not a directory");
|
||||
// return;
|
||||
// }
|
||||
|
||||
// File file = root.openNextFile();
|
||||
// while(file){
|
||||
// if(file.isDirectory()){
|
||||
// Serial.print(" DIR : ");
|
||||
// Serial.println(file.name());
|
||||
// if(levels){
|
||||
// listDir(fs, file.path(), levels -1);
|
||||
// }
|
||||
// } else {
|
||||
// Serial.print(" FILE: ");
|
||||
// Serial.print(file.name());
|
||||
// Serial.print("\tSIZE: ");
|
||||
// Serial.println(file.size());
|
||||
// }
|
||||
// file = root.openNextFile();
|
||||
// }
|
||||
// }
|
||||
|
||||
// void readFile(fs::FS &fs, const char * path){
|
||||
// Serial.printf("Reading file: %s\r\n", path);
|
||||
|
||||
// File file = fs.open(path);
|
||||
// if(!file || file.isDirectory()){
|
||||
// Serial.println("− failed to open file for reading");
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Serial.println("− read from file:");
|
||||
// while(file.available()){
|
||||
// Serial.write(file.read());
|
||||
// }
|
||||
// }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue