Skip to content

Commit

Permalink
Fix #300: use STM32 architecture for Catena Download
Browse files Browse the repository at this point in the history
  • Loading branch information
dhineshkumarmcci committed Jun 21, 2021
1 parent 7fe5c72 commit 6967383
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Catena_Download.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Copyright and License:
#ifndef _catena_download_h_
#define _catena_download_h_

#ifdef ARDUINO_STM32

#include <cstdarg>
#include <Catena_BootloaderApi.h>
#include <Catena_Flash.h>
Expand Down Expand Up @@ -284,4 +286,6 @@ class cDownload : public cPollableObject

} // McciCatena

#endif // ARDUINO_STM32

#endif // _catena_download_h_
4 changes: 4 additions & 0 deletions src/lib/Catena_Download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Copyright and License:

#include "Catena_Download.h"

#ifdef ARDUINO_STM32

#include <Catena_BootloaderApi.h>
#include <Catena_Flash.h>
#include <Catena_Log.h>
Expand Down Expand Up @@ -590,3 +592,5 @@ cDownload::evStartSerialDownload(
// launch the request.
return evStart(request);
}

#endif ARDUINO_STM32

0 comments on commit 6967383

Please sign in to comment.