Browse Source

Init watchdog last in setup()

Scott Lahteine 7 years ago
parent
commit
317673fec3
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/Marlin.cpp

+ 4
- 4
Marlin/src/Marlin.cpp View File

710
   if (mcu & 32) SERIAL_ECHOLNPGM(MSG_SOFTWARE_RESET);
710
   if (mcu & 32) SERIAL_ECHOLNPGM(MSG_SOFTWARE_RESET);
711
   HAL_clear_reset_source();
711
   HAL_clear_reset_source();
712
 
712
 
713
-  #if ENABLED(USE_WATCHDOG) //reinit watchdog after HAL_get_reset_source call
714
-    watchdog_init();
715
-  #endif
716
-
717
   SERIAL_ECHOPGM(MSG_MARLIN);
713
   SERIAL_ECHOPGM(MSG_MARLIN);
718
   SERIAL_CHAR(' ');
714
   SERIAL_CHAR(' ');
719
   SERIAL_ECHOLNPGM(SHORT_BUILD_VERSION);
715
   SERIAL_ECHOLNPGM(SHORT_BUILD_VERSION);
879
   #if ENABLED(PARKING_EXTRUDER)
875
   #if ENABLED(PARKING_EXTRUDER)
880
     pe_magnet_init();
876
     pe_magnet_init();
881
   #endif
877
   #endif
878
+
879
+  #if ENABLED(USE_WATCHDOG) // Reinit watchdog after HAL_get_reset_source call
880
+    watchdog_init();
881
+  #endif
882
 }
882
 }
883
 
883
 
884
 /**
884
 /**

Loading…
Cancel
Save