From 846c7db14b77d23873b602f435c2de5198b213fe Mon Sep 17 00:00:00 2001 From: Lurkars Date: Sun, 6 Dec 2020 13:23:37 +0100 Subject: [PATCH] bugfix: compiling without hourly config --- components/ena-eke-proxy/ena-eke-proxy.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/components/ena-eke-proxy/ena-eke-proxy.h b/components/ena-eke-proxy/ena-eke-proxy.h index 646272b..d99b086 100644 --- a/components/ena-eke-proxy/ena-eke-proxy.h +++ b/components/ena-eke-proxy/ena-eke-proxy.h @@ -28,10 +28,21 @@ #define ENA_EKE_PROXY_LOG "ESP-ENA-eke-proxy" // TAG for Logging #define ENA_EKE_PROXY_KEYFILES_DAILY_URL CONFIG_ENA_EKE_PROXY_KEYFILES_DAILY_URL -#define ENA_EKE_PROXY_KEYFILES_HOURLY CONFIG_ENA_EKE_PROXY_KEYFILES_HOURLY + +#ifdef CONFIG_ENA_EKE_PROXY_KEYFILES_HOURLY +#define ENA_EKE_PROXY_KEYFILES_HOURLY true +#else +#define ENA_EKE_PROXY_KEYFILES_HOURLY false +#endif + +#if ENA_EKE_PROXY_KEYFILES_HOURLY #define ENA_EKE_PROXY_KEYFILES_HOURLY_URL CONFIG_ENA_EKE_PROXY_KEYFILES_HOURLY_URL +#else +#define ENA_EKE_PROXY_KEYFILES_HOURLY_URL "/%s/%u/%u/%u" +#endif + #define ENA_EKE_PROXY_KEYFILES_DAILY_FORMAT CONFIG_ENA_EKE_PROXY_KEYFILES_DAILY_FORMAT -#define ENA_EKE_PROXY_KEYFILES_UPLOAD_URL CONFIG_ENA_EKE_PROXY_KEYFILES_UPLOAD_URL +#define ENA_EKE_PROXY_KEYFILES_UPLOAD_URL CONFIG_ENA_EKE_PROXY_KEYFILES_UPLOAD_URL #define ENA_EKE_PROXY_DEFAULT_LIMIT CONFIG_ENA_EKE_PROXY_KEY_LIMIT #define ENA_EKE_PROXY_MAX_PAST_DAYS CONFIG_ENA_EKE_PROXY_MAX_PAST_DAYS // ENA_STORAGE_TEK_MAX