Skip to content

Commit 1eeb643

Browse files
committed
Add a flag to not use watchdog in Debug mode and added at the end so doesn't interfere with Ethernet
1 parent 855d79b commit 1eeb643

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Src/HALAL/HALAL.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ void HALAL::start(IPV4 ip, IPV4 subnet_mask, IPV4 gateway,
1313

1414
#ifdef HAL_IWDG_MODULE_ENABLED
1515
Watchdog::check_reset_flag();
16-
Watchdog::start();
1716
#endif
1817
#if !defined STLIB_ETH
1918
#else
@@ -83,6 +82,11 @@ void HALAL::start(IPV4 ip, IPV4 subnet_mask, IPV4 gateway,
8382
#ifdef HAL_EXTI_MODULE_ENABLED
8483
ExternalInterrupt::start();
8584
#endif
85+
#ifdef NDEBUG
86+
#ifdef HAL_IWDG_MODULE_ENABLED
87+
Watchdog::start();
88+
#endif
89+
#endif
8690
}
8791
#else
8892
// Simulator start

0 commit comments

Comments
 (0)