Merge branch 'farm-patch1' of github.com:DRracer/Prusa-Firmware into farm-patch1
This commit is contained in:
commit
98a4da571d
@ -1056,7 +1056,9 @@ void setup()
|
||||
no_response = true; //we need confirmation by recieving PRUSA thx
|
||||
important_status = 8;
|
||||
prusa_statistics(8);
|
||||
#ifdef HAS_SECOND_SERIAL_PORT
|
||||
selectedSerialPort = 1;
|
||||
#endif //HAS_SECOND_SERIAL_PORT
|
||||
MYSERIAL.begin(BAUDRATE);
|
||||
#ifdef TMC2130
|
||||
//increased extruder current (PFW363)
|
||||
@ -3901,19 +3903,19 @@ void process_commands()
|
||||
mmu_reset();
|
||||
}
|
||||
else if (code_seen("RESET")) { // PRUSA RESET
|
||||
// careful!
|
||||
if (farm_mode) {
|
||||
#if (defined(WATCHDOG) && (MOTHERBOARD == BOARD_EINSY_1_0a))
|
||||
boot_app_magic = BOOT_APP_MAGIC;
|
||||
boot_app_flags = BOOT_APP_FLG_RUN;
|
||||
softReset();
|
||||
#ifdef WATCHDOG
|
||||
#if defined(W25X20CL) && defined(BOOTAPP)
|
||||
boot_app_magic = BOOT_APP_MAGIC;
|
||||
boot_app_flags = BOOT_APP_FLG_RUN;
|
||||
#endif //defined(W25X20CL) && defined(BOOTAPP)
|
||||
softReset();
|
||||
#else //WATCHDOG
|
||||
// careful!
|
||||
if (farm_mode)
|
||||
asm volatile("jmp 0x3E000");
|
||||
else
|
||||
puts_P(PSTR("Not in farm mode."));
|
||||
#endif //WATCHDOG
|
||||
}
|
||||
else {
|
||||
MYSERIAL.println("Not in farm mode.");
|
||||
}
|
||||
}else if (code_seen("fv")) { // PRUSA fv
|
||||
// get file version
|
||||
#ifdef SDSUPPORT
|
||||
|
@ -669,7 +669,7 @@ void lcdui_print_extruder(void)
|
||||
// Print farm number (5 chars total)
|
||||
void lcdui_print_farm(void)
|
||||
{
|
||||
lcd_printf_P(_N(" F0 "));
|
||||
lcd_printf_P(_N(" FRM "));
|
||||
}
|
||||
|
||||
#ifdef CMD_DIAGNOSTICS
|
||||
@ -6705,6 +6705,8 @@ static void lcd_main_menu()
|
||||
|
||||
if ( ( IS_SD_PRINTING || is_usb_printing || (lcd_commands_type == LcdCommands::Layer1Cal)) && (current_position[Z_AXIS] < Z_HEIGHT_HIDE_LIVE_ADJUST_MENU) && !homing_flag && !mesh_bed_leveling_flag)
|
||||
{
|
||||
if (farm_mode)
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);//8
|
||||
MENU_ITEM_SUBMENU_P(_T(MSG_BABYSTEP_Z), lcd_babystep_z);//8
|
||||
}
|
||||
|
||||
@ -6984,7 +6986,8 @@ static void lcd_tune_menu()
|
||||
MENU_ITEM_EDIT_advance_K();//7
|
||||
#endif
|
||||
#ifdef FILAMENTCHANGEENABLE
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);//8
|
||||
if (!farm_mode)
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);//8
|
||||
#endif
|
||||
|
||||
#ifdef FILAMENT_SENSOR
|
||||
|
Loading…
Reference in New Issue
Block a user