Skip to content

Commit

Permalink
Merge branch 'master' into geek_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TinkerGnome committed Feb 18, 2015
2 parents e3d4bbb + 5cad5af commit aa7a38c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,7 @@ void process_commands()
lifetime_stats_tick();
}

plan_set_e_position(current_position[E_AXIS]);
//return to normal
if(code_seen('L'))
{
Expand Down
13 changes: 12 additions & 1 deletion Marlin/UltiLCD2_menu_first_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ static void lcd_menu_first_run_bed_level_paper_right()

static void parkHeadForHeating()
{
lcd_material_reset_defaults();
enquecommand_P(PSTR("G1 F12000 X110 Y10"));
enquecommand_P(PSTR("M84"));//Disable motor power.
}
Expand Down Expand Up @@ -434,6 +435,17 @@ static void lcd_menu_first_run_material_load_wait()

static void lcd_menu_first_run_material_select_1()
{
if (eeprom_read_byte(EEPROM_MATERIAL_COUNT_OFFSET()) == 1)
{
digipot_current(2, motor_current_setting[2]);//Set E motor power to default.

for(uint8_t e=0; e<EXTRUDERS; e++)
lcd_material_set_material(0, e);
SET_FIRST_RUN_DONE();

currentMenu = lcd_menu_first_run_print_1;
return;
}
SELECT_MAIN_MENU_ITEM(0);
lcd_info_screen(lcd_menu_first_run_material_select_material, doCooldown, PSTR("READY"));
DRAW_PROGRESS_NR(16);
Expand Down Expand Up @@ -469,7 +481,6 @@ static void lcd_menu_first_run_material_select_material()
{
digipot_current(2, motor_current_setting[2]);//Set E motor power to default.

lcd_material_reset_defaults();
for(uint8_t e=0; e<EXTRUDERS; e++)
lcd_material_set_material(SELECTED_SCROLL_MENU_ITEM(), e);
SET_FIRST_RUN_DONE();
Expand Down
4 changes: 2 additions & 2 deletions Marlin/UltiLCD2_menu_print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ void abortPrint()
card.pause = false;
pauseRequested = false;

enquecommand_P(PSTR("M401"));

if (primed)
{
// set up the end of print retraction
Expand All @@ -71,8 +73,6 @@ void abortPrint()
primed = false;
}

enquecommand_P(PSTR("M401"));

if (current_position[Z_AXIS] > Z_MAX_POS - 30)
{
enquecommand_P(PSTR("G28 X0 Y0"));
Expand Down

0 comments on commit aa7a38c

Please sign in to comment.