Skip to content

Commit 7934562

Browse files
committed
chore: add explicit error when HAL SD module is not enabled
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 7aed455 commit 7934562

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/STM32SD.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "Sd2Card.h"
2323
#include "SdFatFs.h"
2424

25+
#ifndef HAL_SD_MODULE_ENABLED
26+
#error "HAL_SD_MODULE_ENABLED is required"
27+
#endif
28+
2529
// flags for ls()
2630
/** ls() flag to print modify date */
2731
uint8_t const LS_DATE = 1;

0 commit comments

Comments
 (0)