Skip to content

Commit 97e6472

Browse files
committed
Do not build OTA functions for PORTENTA_H7_M4
1 parent 45d5672 commit 97e6472

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ArduinoIoTCloudTCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
826826
_ota_error = rp2040_connect_onOTARequest(_ota_url.c_str());
827827
#endif
828828

829-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
829+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
830830
_ota_error = portenta_h7_onOTARequest(_ota_url.c_str());
831831
#endif
832832
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
a commercial license, send an email to [email protected].
1616
*/
1717

18-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
18+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
1919

2020
/******************************************************************************
2121
* INCLUDE
@@ -87,4 +87,4 @@ int portenta_h7_onOTARequest(char const * ota_url)
8787
NVIC_SystemReset();
8888
}
8989

90-
#endif /* defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION) */
90+
#endif /* defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) */

src/utility/ota/OTA.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int samd_onOTARequest(char const * ota_url);
6262
int rp2040_connect_onOTARequest(char const * ota_url);
6363
#endif
6464

65-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
65+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
6666
int portenta_h7_onOTARequest(char const * ota_url);
6767
#endif
6868

0 commit comments

Comments
 (0)