Skip to content

Commit

Permalink
Fix SdVolume compatibility on Teensy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Mar 31, 2023
1 parent 3f44f07 commit a877769
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SD.h
Expand Up @@ -266,7 +266,11 @@ class SdVolume
uint32_t clusterCount() {
return SD.sdfs.vol()->clusterCount();
}
#if defined(__arm__)
operator FsVolume * () __attribute__ ((deprecated("Use SD.begin() to access SD cards"))) {
#elif defined(__AVR__)
operator FatVolume * () __attribute__ ((deprecated("Use SD.begin() to access SD cards"))) {
#endif
return SD.sdfs.vol();
}
};
Expand Down

0 comments on commit a877769

Please sign in to comment.