Skip to content

Commit 14a8f54

Browse files
committed
Only compile OTA related components when at least one OTA memory storage type is enabled
1 parent d79a564 commit 14a8f54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ArduinoIoTCloud_Config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
#define OTA_STORAGE_MKRMEM (0)
3535
#endif
3636

37+
#if OTA_STORAGE_MKRMEM
38+
#define OTA_ENABLED (1)
39+
#else
40+
#define OTA_ENABLED (0)
41+
#endif
42+
3743
#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRWIFI1010) || \
3844
defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_NANO_33_IOT) || \
3945
defined(ARDUINO_SAMD_MKRNB1500)

0 commit comments

Comments
 (0)