Skip to content

Commit 40ea7d5

Browse files
committed
Move inclusion of Arduino_Portenta_OTA library within OTA-portenta-h7.cpp (no need for it to be included outside of this module.
1 parent 306d569 commit 40ea7d5

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
#include "tls/utility/CryptoUtil.h"
3434
#endif
3535

36-
#if defined(ARDUINO_PORTENTA_H7_M7)
36+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
37+
# include <algorithm>
3738
# include "tls/utility/SHA256.h"
3839
# include <stm32h7xx_hal_rtc_ex.h>
3940
#endif
@@ -45,6 +46,7 @@
4546

4647
#include "utility/watchdog/Watchdog.h"
4748

49+
4850
/******************************************************************************
4951
* EXTERN
5052
******************************************************************************/

src/utility/ota/OTA-portenta-h7.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "OTA.h"
2525

2626
#include <Arduino_DebugUtils.h>
27+
#include <Arduino_Portenta_OTA.h>
2728

2829
#include "../watchdog/Watchdog.h"
2930

src/utility/ota/OTA.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
#include <SFU.h>
3737
#endif /* OTA_STORAGE_SFU */
3838

39-
#if OTA_STORAGE_PORTENTA_QSPI
40-
#include <Arduino_Portenta_OTA.h>
41-
#endif /* OTA_STORAGE_PORTENTA_QSPI */
42-
4339
/******************************************************************************
4440
* TYPEDEF
4541
******************************************************************************/

0 commit comments

Comments
 (0)