Merge pull request #4571 from thinkyhead/rc_proper_delta_calibration

Patch command order in delta calibration menu
This commit is contained in:
Scott Lahteine 2016-08-08 21:50:42 -07:00 committed by GitHub
commit b772172c84

View File

@ -1261,9 +1261,9 @@ void kill_screen(const char* lcd_msg) {
#if ENABLED(DELTA_CALIBRATION_MENU) #if ENABLED(DELTA_CALIBRATION_MENU)
static void _goto_tower_pos(const float &a) { static void _goto_tower_pos(const float &a) {
char cmd[20]; char cmd[26];
sprintf_P(cmd, PSTR("G1 X%i Y%i"), int(-(DELTA_PRINTABLE_RADIUS) * sin(a)), int((DELTA_PRINTABLE_RADIUS) * cos(a))); sprintf_P(cmd, PSTR("G1 F4000 X%i Y%i"), int(-(DELTA_PRINTABLE_RADIUS) * sin(a)), int((DELTA_PRINTABLE_RADIUS) * cos(a)));
enqueue_and_echo_commands_P(PSTR("G1 F8000 Z4\nG1 F4000")); enqueue_and_echo_commands_P(PSTR("G1 F8000 Z4"));
enqueue_and_echo_command(cmd); enqueue_and_echo_command(cmd);
} }