Skip to content

Commit 21974b0

Browse files
committed
Portenta OTA: Fix include Ethernet only for PORTENTA_H7_M7 builds
1 parent ce43554 commit 21974b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/utility/ota/OTA-portenta-h7.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
#include <Arduino_Portenta_OTA.h>
2828

2929
#include <WiFi.h>
30+
#if defined (ARDUINO_PORTENTA_H7_M7)
3031
#include <Ethernet.h>
32+
#endif
3133

3234
#include "../watchdog/Watchdog.h"
3335

0 commit comments

Comments
 (0)