Skip to content

Commit

Permalink
chore: add explicit error when HAL SD module is not enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 17, 2024
1 parent 7aed455 commit 13fda48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/STM32SD.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "Sd2Card.h"
#include "SdFatFs.h"

#ifndef HAL_SD_MODULE_ENABLED
#error "HAL_SD_MODULE_ENABLED is required"
#endif

// flags for ls()
/** ls() flag to print modify date */
uint8_t const LS_DATE = 1;
Expand Down

0 comments on commit 13fda48

Please sign in to comment.