From 7934562da67ab40ffe87986d88d02624ae0432c1 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 17 Sep 2024 14:35:17 +0200 Subject: [PATCH] chore: add explicit error when HAL SD module is not enabled Signed-off-by: Frederic Pillon --- src/STM32SD.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/STM32SD.h b/src/STM32SD.h index 49122bb..afa5343 100644 --- a/src/STM32SD.h +++ b/src/STM32SD.h @@ -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;