Fixes power mode in Tune menu...

...and changed the filament runout procedure
Druing the print you can access the Tune menu and the new feature Power Mode [auto] was added, but choosing it it goes to the Settings menu. Here the fix for that in the ultralcd.cpp.
Also changed the filament runout procedure in Marlin_main.cpp to use M600 command (origin idea/update from Marlin 1.1.x) defined in the 1_75mm_MKx_yyyy_E3dv6full.h files
This commit is contained in:
3d-gussner 2017-10-15 12:16:35 +02:00
parent 6e3174cba2
commit 713527bf4a
8 changed files with 29 additions and 20 deletions

View File

@ -2429,7 +2429,7 @@ void process_commands()
return;
} else if (code_seen("SERIAL HIGH")) {
MYSERIAL.println("SERIAL HIGH");
MYSERIAL.begin(1152000);
MYSERIAL.begin(115200);
return;
} else if(code_seen("Beat")) {
// Kick farm link timer
@ -2457,8 +2457,9 @@ void process_commands()
#ifdef FILAMENT_RUNOUT_SUPPORT
if(READ(FR_SENS)){
enquecommand_front_P((PSTR(FILAMENT_RUNOUT_SCRIPT)));
feedmultiplyBckp=feedmultiply;
/* feedmultiplyBckp=feedmultiply;
float target[4];
float lastpos[4];
target[X_AXIS]=current_position[X_AXIS];
@ -2620,7 +2621,7 @@ void process_commands()
sprintf_P(cmd, PSTR("M220 S%i"), feedmultiplyBckp);
enquecommand(cmd);
*/
}

View File

@ -3054,6 +3054,19 @@ static void lcd_silent_mode_set() {
digipot_init();
lcd_goto_menu(lcd_settings_menu, 7);
}
static void lcd_silent_mode_set_tune() {
switch (SilentModeMenu) {
case 0: SilentModeMenu = 1; break;
case 1: SilentModeMenu = 2; break;
case 2: SilentModeMenu = 0; break;
default: SilentModeMenu = 0; break;
}
eeprom_update_byte((unsigned char *)EEPROM_SILENT, SilentModeMenu);
digipot_init();
lcd_goto_menu(lcd_tune_menu, 8);
}
static void lcd_set_lang(unsigned char lang) {
lang_selected = lang;
firstrun = 1;
@ -4745,17 +4758,6 @@ static void lcd_autostart_sd()
}
static void lcd_silent_mode_set_tune() {
switch (SilentModeMenu) {
case 0: SilentModeMenu = 1; break;
case 1: SilentModeMenu = 2; break;
case 2: SilentModeMenu = 0; break;
default: SilentModeMenu = 0; break;
}
eeprom_update_byte((unsigned char *)EEPROM_SILENT, SilentModeMenu);
digipot_init();
lcd_goto_menu(lcd_tune_menu, 9);
}
#endif
static void lcd_colorprint_change() {
@ -4787,13 +4789,13 @@ static void lcd_tune_menu()
#ifdef FILAMENTCHANGEENABLE
MENU_ITEM(function, MSG_FILAMENTCHANGE, lcd_colorprint_change);//7
#endif
if (!farm_mode) { //dont show in menu if we are in farm mode
if (!farm_mode) { //dont show in menu if we are in farm mode //8
switch (SilentModeMenu) {
case 0: MENU_ITEM(function, MSG_SILENT_MODE_OFF, lcd_silent_mode_set); break;
case 1: MENU_ITEM(function, MSG_SILENT_MODE_ON, lcd_silent_mode_set); break;
case 2: MENU_ITEM(function, MSG_AUTO_MODE_ON, lcd_silent_mode_set); break;
default: MENU_ITEM(function, MSG_SILENT_MODE_OFF, lcd_silent_mode_set); break;
case 0: MENU_ITEM(function, MSG_SILENT_MODE_OFF, lcd_silent_mode_set_tune); break;
case 1: MENU_ITEM(function, MSG_SILENT_MODE_ON, lcd_silent_mode_set_tune); break;
case 2: MENU_ITEM(function, MSG_AUTO_MODE_ON, lcd_silent_mode_set_tune); break;
default: MENU_ITEM(function, MSG_SILENT_MODE_OFF, lcd_silent_mode_set_tune); break;
}
}
END_MENU();

View File

@ -177,6 +177,7 @@ ADDITIONAL FEATURES SETTINGS
#ifdef FILAMENT_RUNOUT_SUPPORT
#define FILAMENT_RUNOUT_SENSOR 1
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
// temperature runaway

View File

@ -177,6 +177,7 @@ ADDITIONAL FEATURES SETTINGS
#ifdef FILAMENT_RUNOUT_SUPPORT
#define FILAMENT_RUNOUT_SENSOR 1
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
// temperature runaway

View File

@ -172,6 +172,7 @@ ADDITIONAL FEATURES SETTINGS
#ifdef FILAMENT_RUNOUT_SUPPORT
#define FILAMENT_RUNOUT_SENSOR 1
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
// temperature runaway

View File

@ -174,6 +174,7 @@ ADDITIONAL FEATURES SETTINGS
#ifdef FILAMENT_RUNOUT_SUPPORT
#define FILAMENT_RUNOUT_SENSOR 1
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
// temperature runaway

View File

@ -172,6 +172,7 @@ ADDITIONAL FEATURES SETTINGS
#ifdef FILAMENT_RUNOUT_SUPPORT
#define FILAMENT_RUNOUT_SENSOR 1
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
// temperature runaway

View File

@ -174,6 +174,7 @@ ADDITIONAL FEATURES SETTINGS
#ifdef FILAMENT_RUNOUT_SUPPORT
#define FILAMENT_RUNOUT_SENSOR 1
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
// temperature runaway