From 696738343c2fbfa176428edd417b2adba444ab76 Mon Sep 17 00:00:00 2001 From: dhineshkumarmcci Date: Tue, 22 Jun 2021 03:21:24 +0530 Subject: [PATCH] Fix #300: use STM32 architecture for Catena Download --- src/Catena_Download.h | 4 ++++ src/lib/Catena_Download.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Catena_Download.h b/src/Catena_Download.h index b7d49d5..e393657 100644 --- a/src/Catena_Download.h +++ b/src/Catena_Download.h @@ -24,6 +24,8 @@ Copyright and License: #ifndef _catena_download_h_ #define _catena_download_h_ +#ifdef ARDUINO_STM32 + #include #include #include @@ -284,4 +286,6 @@ class cDownload : public cPollableObject } // McciCatena +#endif // ARDUINO_STM32 + #endif // _catena_download_h_ diff --git a/src/lib/Catena_Download.cpp b/src/lib/Catena_Download.cpp index 347719a..ecfc3ce 100644 --- a/src/lib/Catena_Download.cpp +++ b/src/lib/Catena_Download.cpp @@ -21,6 +21,8 @@ Copyright and License: #include "Catena_Download.h" +#ifdef ARDUINO_STM32 + #include #include #include @@ -590,3 +592,5 @@ cDownload::evStartSerialDownload( // launch the request. return evStart(request); } + +#endif ARDUINO_STM32