瀏覽代碼

🐛 Fix manage_heaters recursion on servo move (#22313)

Followup to e297748b22
Katelyn Schiesser 3 年之前
父節點
當前提交
79405ce2af
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      Marlin/src/module/temperature.cpp

+ 4
- 0
Marlin/src/module/temperature.cpp 查看文件

1236
 void Temperature::manage_heater() {
1236
 void Temperature::manage_heater() {
1237
   if (marlin_state == MF_INITIALIZING) return watchdog_refresh(); // If Marlin isn't started, at least reset the watchdog!
1237
   if (marlin_state == MF_INITIALIZING) return watchdog_refresh(); // If Marlin isn't started, at least reset the watchdog!
1238
 
1238
 
1239
+  static bool no_reentry = false;  // Prevent recursion
1240
+  if (no_reentry) return;
1241
+  REMEMBER(mh, no_reentry, true);
1242
+
1239
   #if ENABLED(EMERGENCY_PARSER)
1243
   #if ENABLED(EMERGENCY_PARSER)
1240
     if (emergency_parser.killed_by_M112) kill(M112_KILL_STR, nullptr, true);
1244
     if (emergency_parser.killed_by_M112) kill(M112_KILL_STR, nullptr, true);
1241
 
1245
 

Loading…
取消
儲存