Skip to content
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

Upgrade SdFat from 2.0.6 to 2.2.0 #152

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default_envs = STM32F1
[env]
framework = arduino
lib_deps =
greiman/SdFat @ 2.0.6
greiman/SdFat @ 2.2.0
upload_protocol = stlink
; Different gcc versions produce much different binaries in terms of speed.
platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
Expand Down Expand Up @@ -66,7 +66,7 @@ board_build.mcu = stm32f103c8t6
board_build.core = maple
framework = arduino
lib_deps =
greiman/SdFat @ 2.0.6
greiman/SdFat @ 2.2.0
upload_protocol = dfu
; Different gcc versions produce much different binaries in terms of speed.
platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
Expand Down
9 changes: 4 additions & 5 deletions src/BlueSCSI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,12 @@ void readSDCardInfo()
LOG_FILE.println(sd_cid.pnm[4]);

LOG_FILE.print("Sd Date:");
LOG_FILE.print(sd_cid.mdt_month);
LOG_FILE.print("/20"); // CID year is 2000 + high/low
LOG_FILE.print(sd_cid.mdt_year_high);
LOG_FILE.println(sd_cid.mdt_year_low);
LOG_FILE.print(sd_cid.mdtMonth());
LOG_FILE.print("/");
LOG_FILE.println(sd_cid.mdtYear());

LOG_FILE.print("Sd Serial:");
LOG_FILE.println(sd_cid.psn);
LOG_FILE.println(sd_cid.psn());
LOG_FILE.sync();
}
}
Expand Down