Skip to content

Commit 21d9117

Browse files
committed
Completely remove ARDUINO_PORTENTA_H7_M4 from the code since wifi module is not working on the M4
1 parent 97e6472 commit 21d9117

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: src/AIoTC_Config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKR1000) || \
118118
defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_PORTENTA_H7_M7) || \
119-
defined(ARDUINO_PORTENTA_H7_M4) || defined (ARDUINO_NANO_RP2040_CONNECT)
119+
defined (ARDUINO_NANO_RP2040_CONNECT)
120120
#define BOARD_HAS_ECCX08
121121
#define HAS_TCP
122122
#endif

Diff for: src/ArduinoIoTCloudTCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include "tls/utility/CryptoUtil.h"
3939
#endif
4040

41-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
41+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
4242
# include "tls/utility/SHA256.h"
4343
# include <stm32h7xx_hal_rtc_ex.h>
4444
# include <WiFi.h>

Diff for: src/utility/watchdog/Watchdog.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void mkr_nb_feed_watchdog()
9090
static void mbed_watchdog_enable()
9191
{
9292
watchdog_config_t cfg;
93-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
93+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
9494
cfg.timeout_ms = PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms;
9595
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
9696
cfg.timeout_ms = NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms;
@@ -116,7 +116,7 @@ static void mbed_watchdog_reset()
116116
void mbed_watchdog_trigger_reset()
117117
{
118118
watchdog_config_t cfg;
119-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
119+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
120120
cfg.timeout_ms = 1;
121121
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
122122
cfg.timeout_ms = 1;

0 commit comments

Comments
 (0)