Browse Source

Merge pull request #8878 from tcm0116/2.0.x_revert

[2.0.x] Revert "Followup to #8698"
Scott Lahteine 7 years ago
parent
commit
2b0165e90c
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Marlin/src/module/planner.cpp

+ 3
- 0
Marlin/src/module/planner.cpp View File

1076
     CRITICAL_SECTION_END
1076
     CRITICAL_SECTION_END
1077
   #endif
1077
   #endif
1078
 
1078
 
1079
+  block->nominal_speed = block->millimeters * inverse_secs;           //   (mm/sec) Always > 0
1080
+  block->nominal_rate = CEIL(block->step_event_count * inverse_secs); // (step/sec) Always > 0
1081
+
1079
   #if ENABLED(FILAMENT_WIDTH_SENSOR)
1082
   #if ENABLED(FILAMENT_WIDTH_SENSOR)
1080
     static float filwidth_e_count = 0, filwidth_delay_dist = 0;
1083
     static float filwidth_e_count = 0, filwidth_delay_dist = 0;
1081
 
1084
 

Loading…
Cancel
Save