Skip to content

Commit

Permalink
Add sd card volume format to log.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed May 21, 2022
1 parent c8d4721 commit 94a22bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/BlueSCSI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,18 @@ void initFileLog(int success_mhz) {
LOG_FILE.println(SDFAT_FILE_TYPE);
LOG_FILE.print("SdFat version: ");
LOG_FILE.println(SD_FAT_VERSION_STR);
LOG_FILE.print("SD Format: ");
switch(SD.vol()->fatType()) {
case FAT_TYPE_EXFAT:
LOG_FILE.println("exFAT");
break;
case FAT_TYPE_FAT32:
LOG_FILE.print("FAT32");
case FAT_TYPE_FAT16:
LOG_FILE.print("FAT16");
default:
LOG_FILE.println(" - Consider formatting the SD Card with exFAT for improved performance.");
}
LOG_FILE.print("SPI speed: ");
LOG_FILE.print(success_mhz);
LOG_FILE.println("Mhz");
Expand Down

0 comments on commit 94a22bb

Please sign in to comment.