Merge pull request #4284 from thinkyhead/rc_serial_ln_macros

Sled-probe sanity fix, conditionals for remaining types of leveling
This commit is contained in:
Scott Lahteine
2016-07-12 16:36:33 -07:00
committed by GitHub
3 changed files with 27 additions and 29 deletions

View File

@ -129,18 +129,16 @@ float Planner::previous_nominal_speed;
* Class and Instance Methods
*/
Planner::Planner() {
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
bed_level_matrix.set_to_identity();
#endif
init();
}
Planner::Planner() { init(); }
void Planner::init() {
block_buffer_head = block_buffer_tail = 0;
memset(position, 0, sizeof(position)); // clear position
for (int i = 0; i < NUM_AXIS; i++) previous_speed[i] = 0.0;
previous_nominal_speed = 0.0;
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
bed_level_matrix.set_to_identity();
#endif
}
/**