Skip to content

Commit 9b4d161

Browse files
committed
Fix build for mkr1000 mkrnb and mkrwan
1 parent b5d098c commit 9b4d161

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/utility/ota/OTA-samd.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,24 @@
1515
a commercial license, send an email to license@arduino.cc.
1616
*/
1717

18-
#ifdef ARDUINO_ARCH_SAMD
19-
2018
/******************************************************************************
2119
* INCLUDE
2220
******************************************************************************/
2321

24-
#include "OTA.h"
22+
#include <AIoTC_Config.h>
2523

26-
#include <Arduino_DebugUtils.h>
24+
#if defined (ARDUINO_ARCH_SAMD) && OTA_ENABLED
2725

26+
#include "OTA.h"
27+
#include <Arduino_DebugUtils.h>
2828
#include "../watchdog/Watchdog.h"
29+
#include "utility/ota/FlashSHA256.h"
2930

3031
#if OTA_STORAGE_SNU
3132
# include <SNU.h>
3233
# include <WiFiNINA.h> /* WiFiStorage */
3334
#endif
3435

35-
#include "utility/ota/FlashSHA256.h"
36-
3736
/******************************************************************************
3837
* FUNCTION DEFINITION
3938
******************************************************************************/

0 commit comments

Comments
 (0)