|
@@ -40,15 +40,26 @@ void lay1cal_preheat()
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
+
|
|
|
|
|
|
|
|
|
|
-void lay1cal_intro_line(char *cmd_buffer, uint8_t filament)
|
|
+void lay1cal_load_filament(char *cmd_buffer, uint8_t filament)
|
|
|
|
+{
|
|
|
|
+ if (mmu_enabled)
|
|
|
|
+ {
|
|
|
|
+ enquecommand_P(PSTR("M83"));
|
|
|
|
+ enquecommand_P(PSTR("G1 Y-3.0 F1000.0"));
|
|
|
|
+ enquecommand_P(PSTR("G1 Z0.4 F1000.0"));
|
|
|
|
+ sprintf_P(cmd_buffer, PSTR("T%d"), filament);
|
|
|
|
+ enquecommand(cmd_buffer);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+void lay1cal_intro_line()
|
|
{
|
|
{
|
|
- static const char cmd_intro_mmu_0[] PROGMEM = "M83";
|
|
+ static const char cmd_intro_mmu_3[] PROGMEM = "G1 X55.0 E32.0 F1073.0";
|
|
- static const char cmd_intro_mmu_1[] PROGMEM = "G1 Y-3.0 F1000.0";
|
|
|
|
- static const char cmd_intro_mmu_2[] PROGMEM = "G1 Z0.4 F1000.0";
|
|
|
|
- static const char cmd_intro_mmu_3[] PROGMEM = "G1 X55.0 E32.0 F1073.0";
|
|
|
|
static const char cmd_intro_mmu_4[] PROGMEM = "G1 X5.0 E32.0 F1800.0";
|
|
static const char cmd_intro_mmu_4[] PROGMEM = "G1 X5.0 E32.0 F1800.0";
|
|
static const char cmd_intro_mmu_5[] PROGMEM = "G1 X55.0 E8.0 F2000.0";
|
|
static const char cmd_intro_mmu_5[] PROGMEM = "G1 X55.0 E8.0 F2000.0";
|
|
static const char cmd_intro_mmu_6[] PROGMEM = "G1 Z0.3 F1000.0";
|
|
static const char cmd_intro_mmu_6[] PROGMEM = "G1 Z0.3 F1000.0";
|
|
@@ -61,10 +72,7 @@ void lay1cal_intro_line(char *cmd_buffer, uint8_t filament)
|
|
|
|
|
|
static const char * const intro_mmu_cmd[] PROGMEM =
|
|
static const char * const intro_mmu_cmd[] PROGMEM =
|
|
{
|
|
{
|
|
- cmd_intro_mmu_0,
|
|
+ cmd_intro_mmu_3,
|
|
- cmd_intro_mmu_1,
|
|
|
|
- cmd_intro_mmu_2,
|
|
|
|
- cmd_intro_mmu_3,
|
|
|
|
cmd_intro_mmu_4,
|
|
cmd_intro_mmu_4,
|
|
cmd_intro_mmu_5,
|
|
cmd_intro_mmu_5,
|
|
cmd_intro_mmu_6,
|
|
cmd_intro_mmu_6,
|
|
@@ -80,11 +88,6 @@ void lay1cal_intro_line(char *cmd_buffer, uint8_t filament)
|
|
{
|
|
{
|
|
for (uint8_t i = 0; i < (sizeof(intro_mmu_cmd)/sizeof(intro_mmu_cmd[0])); ++i)
|
|
for (uint8_t i = 0; i < (sizeof(intro_mmu_cmd)/sizeof(intro_mmu_cmd[0])); ++i)
|
|
{
|
|
{
|
|
- if (3 == i)
|
|
|
|
- {
|
|
|
|
- sprintf_P(cmd_buffer, PSTR("T%d"), filament);
|
|
|
|
- enquecommand(cmd_buffer);
|
|
|
|
- }
|
|
|
|
enquecommand_P(static_cast<char*>(pgm_read_ptr(&intro_mmu_cmd[i])));
|
|
enquecommand_P(static_cast<char*>(pgm_read_ptr(&intro_mmu_cmd[i])));
|
|
}
|
|
}
|
|
}
|
|
}
|