Clean up watchdog impl.
This commit is contained in:
committed by
Richard Wackerbarth
parent
8f16563bbd
commit
b4af4441c5
@ -21,11 +21,13 @@
|
||||
#include "Marlin.h"
|
||||
#include "ultralcd.h"
|
||||
#include "temperature.h"
|
||||
#include "watchdog.h"
|
||||
#include "language.h"
|
||||
|
||||
#include "Sd2PinMap.h"
|
||||
|
||||
#if ENABLED(USE_WATCHDOG)
|
||||
#include "watchdog.h"
|
||||
#endif
|
||||
|
||||
//===========================================================================
|
||||
//================================== macros =================================
|
||||
//===========================================================================
|
||||
@ -819,8 +821,11 @@ static void updateTemperaturesFromRawValues() {
|
||||
#if HAS_FILAMENT_SENSOR
|
||||
filament_width_meas = analog2widthFil();
|
||||
#endif
|
||||
//Reset the watchdog after we know we have a temperature measurement.
|
||||
watchdog_reset();
|
||||
|
||||
#if ENABLED(USE_WATCHDOG)
|
||||
// Reset the watchdog after we know we have a temperature measurement.
|
||||
watchdog_reset();
|
||||
#endif
|
||||
|
||||
CRITICAL_SECTION_START;
|
||||
temp_meas_ready = false;
|
||||
|
Reference in New Issue
Block a user