Skip to content

Commit 5b03e50

Browse files
committed
Declare is_watchdog_enabled only for platform supporting watchdog
1 parent ac87510 commit 5b03e50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utility/watchdog/Watchdog.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
/******************************************************************************
4242
* GLOBAL VARIABLES
4343
******************************************************************************/
44-
44+
#if defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_MBED)
4545
static bool is_watchdog_enabled = false;
46+
#endif
4647

4748
/******************************************************************************
4849
* FUNCTION DEFINITION

0 commit comments

Comments
 (0)