Skip to content

Commit 5d41564

Browse files
committed
add debug flag also for watchdog::refresh()
1 parent 1eeb643 commit 5d41564

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Src/ST-LIB.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ void STLIB::start(string ip, string subnet_mask, string gateaway, UART::Periphe
2222

2323

2424
void STLIB::update() {
25-
#ifdef HAL_IWDG_MODULE_ENABLED
26-
Watchdog::refresh();
25+
#ifdef NDEBUG
26+
#ifdef HAL_IWDG_MODULE_ENABLED
27+
Watchdog::refresh();
28+
#endif
2729
#endif
2830
#if !defined STLIB_ETH
2931
#else

0 commit comments

Comments
 (0)