From 94a22bb45e7a1176dc447621c60df778ae99c865 Mon Sep 17 00:00:00 2001 From: Eric Helgeson Date: Fri, 20 May 2022 19:32:56 -0500 Subject: [PATCH] Add sd card volume format to log.txt --- src/BlueSCSI.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index 5d9697a..67f408c 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -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");