Skip to content

Commit c61f68e

Browse files
committed
chore: rename SD_CardInfo to BSP_SD_CardInfo
to avoid change in FatFs. SD_CardInfo kept for backward compatibility. Signed-off-by: Frederic Pillon <[email protected]>
1 parent a905457 commit c61f68e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Sd2Card.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Sd2Card {
132132
uint8_t type(void) const;
133133

134134
private:
135-
SD_CardInfo _SdCardInfo;
135+
BSP_SD_CardInfo _SdCardInfo;
136136

137137
};
138138
#endif // sd2Card_h

src/bsp_sd.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ Please update the core or install previous library version."
5959

6060
/*SD Card information structure */
6161

62-
#define SD_CardInfo HAL_SD_CardInfoTypeDef
63-
62+
#define BSP_SD_CardInfo HAL_SD_CardInfoTypeDef
63+
/* For backward compatibility */
64+
#define SD_CardInfo BSP_SD_CardInfo
6465
/*SD status structure definition */
6566
#define MSD_OK ((uint8_t)0x00)
6667
#define MSD_ERROR ((uint8_t)0x01)

0 commit comments

Comments
 (0)