diff --git a/src/ArduinoIoTCloudTCP.cpp b/src/ArduinoIoTCloudTCP.cpp index e04d41027..e65da587e 100644 --- a/src/ArduinoIoTCloudTCP.cpp +++ b/src/ArduinoIoTCloudTCP.cpp @@ -282,7 +282,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress, * call to ArduinoIoTCloudTCP::update() it is wise to * set a rather large timeout at first. */ -#if defined (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) +#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED) if (enable_watchdog) { watchdog_enable(); #ifdef WIFI_HAS_FEED_WATCHDOG_FUNC @@ -300,7 +300,7 @@ void ArduinoIoTCloudTCP::update() /* Feed the watchdog. If any of the functions called below * get stuck than we can at least reset and recover. */ -#if defined (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) +#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED) watchdog_reset(); #endif @@ -322,7 +322,7 @@ void ArduinoIoTCloudTCP::update() * maximum watchdog window is 8389ms; despite this we feed it for all * supported ARCH to keep code aligned. */ -#if defined (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) +#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED) watchdog_reset(); #endif diff --git a/src/utility/watchdog/Watchdog.cpp b/src/utility/watchdog/Watchdog.cpp index d12b7a373..ea0324dde 100644 --- a/src/utility/watchdog/Watchdog.cpp +++ b/src/utility/watchdog/Watchdog.cpp @@ -135,7 +135,7 @@ void mbed_watchdog_trigger_reset() } #endif /* ARDUINO_ARCH_MBED */ -#if defined (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) +#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED) void watchdog_enable() { #ifdef ARDUINO_ARCH_SAMD diff --git a/src/utility/watchdog/Watchdog.h b/src/utility/watchdog/Watchdog.h index f1ca98841..879317684 100644 --- a/src/utility/watchdog/Watchdog.h +++ b/src/utility/watchdog/Watchdog.h @@ -22,7 +22,7 @@ * FUNCTION DECLARATION ******************************************************************************/ -#if defined (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) +#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED) void watchdog_enable(); void watchdog_reset(); #endif /* (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) */