M115 update
This commit is contained in:
parent
e7ad81e159
commit
d85a8077a8
@ -5184,7 +5184,16 @@ Sigma_Exit:
|
||||
// pause the print and ask the user to upgrade the firmware.
|
||||
show_upgrade_dialog_if_version_newer(++ strchr_pointer);
|
||||
} else {
|
||||
SERIAL_PROTOCOLRPGM(MSG_M115_REPORT);
|
||||
SERIAL_ECHOPGM("FIRMWARE_NAME:Prusa-Firmware ");
|
||||
SERIAL_ECHORPGM(FW_VERSION_STR_P());
|
||||
SERIAL_ECHOPGM(" based on Marlin FIRMWARE_URL:https://github.com/prusa3d/Prusa-Firmware PROTOCOL_VERSION:");
|
||||
SERIAL_ECHOPGM(PROTOCOL_VERSION);
|
||||
SERIAL_ECHOPGM(" MACHINE_TYPE:");
|
||||
SERIAL_ECHOPGM(CUSTOM_MENDEL_NAME);
|
||||
SERIAL_ECHOPGM(" EXTRUDER_COUNT:");
|
||||
SERIAL_ECHOPGM(STRINGIFY(EXTRUDERS));
|
||||
SERIAL_ECHOPGM(" UUID:");
|
||||
SERIAL_ECHOLNPGM(MACHINE_UUID);
|
||||
}
|
||||
break;
|
||||
/* case 117: // M117 display message
|
||||
|
@ -41,10 +41,10 @@ sub parselang
|
||||
# Trim whitespaces from both sides
|
||||
$value =~ s/^\s+|\s+$//g;
|
||||
#$string =~ s/" MACHINE_NAME "/Prusa i3/;
|
||||
$value =~ s/" FIRMWARE_URL "/https:\/\/github.com\/prusa3d\/Prusa-i3-Plus\//;
|
||||
$value =~ s/" PROTOCOL_VERSION "/1.0/;
|
||||
$value =~ s/" STRINGIFY\(EXTRUDERS\) "/1/;
|
||||
$value =~ s/" MACHINE_UUID "/00000000-0000-0000-0000-000000000000/;
|
||||
#$value =~ s/" FIRMWARE_URL "/https:\/\/github.com\/prusa3d\/Prusa-Firmware\//;
|
||||
#$value =~ s/" PROTOCOL_VERSION "/1.0/;
|
||||
#$value =~ s/" STRINGIFY\(EXTRUDERS\) "/1/;
|
||||
#$value =~ s/" MACHINE_UUID "/00000000-0000-0000-0000-000000000000/;
|
||||
${$out}{$symbol} = { value=>$value, %$modifiers };
|
||||
}
|
||||
return $out;
|
||||
|
@ -3,31 +3,12 @@
|
||||
|
||||
#define PROTOCOL_VERSION "1.0"
|
||||
|
||||
#if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
|
||||
#define MACHINE_NAME "Ultimaker"
|
||||
#define FIRMWARE_URL "http://firmware.ultimaker.com"
|
||||
#elif MB(RUMBA)
|
||||
#define MACHINE_NAME "Rumba"
|
||||
#define FIRMWARE_URL "https://github.com/MarlinFirmware/Marlin"
|
||||
#elif MB(3DRAG)
|
||||
#define MACHINE_NAME "3Drag"
|
||||
#define FIRMWARE_URL "http://3dprint.elettronicain.it/"
|
||||
#elif MB(5DPRINT)
|
||||
#define MACHINE_NAME "Makibox"
|
||||
#define FIRMWARE_URL "https://github.com/MarlinFirmware/Marlin"
|
||||
#elif MB(SAV_MKI)
|
||||
#define MACHINE_NAME "SAV MkI"
|
||||
#define FIRMWARE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
|
||||
#else
|
||||
#ifdef CUSTOM_MENDEL_NAME
|
||||
// #define CUSTOM_MENDEL_NAME CUSTOM_MENDEL_NAME
|
||||
#else
|
||||
#define MACHINE_NAME "Mendel"
|
||||
#endif
|
||||
|
||||
// Default firmware set to Mendel
|
||||
#define FIRMWARE_URL "https://github.com/MarlinFirmware/Marlin"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef MACHINE_UUID
|
||||
|
@ -1115,11 +1115,6 @@ const char * const MSG_M109_INVALID_EXTRUDER_LANG_TABLE[1] PROGMEM = {
|
||||
MSG_M109_INVALID_EXTRUDER_EN
|
||||
};
|
||||
|
||||
const char MSG_M115_REPORT_EN[] PROGMEM = "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:https://github.com/prusa3d/Prusa-i3-Plus/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:1 UUID:00000000-0000-0000-0000-000000000000\n";
|
||||
const char * const MSG_M115_REPORT_LANG_TABLE[1] PROGMEM = {
|
||||
MSG_M115_REPORT_EN
|
||||
};
|
||||
|
||||
const char MSG_M117_V2_CALIBRATION_EN[] PROGMEM = "M117 First layer cal.";
|
||||
const char MSG_M117_V2_CALIBRATION_CZ[] PROGMEM = "M117 Kal. prvni vrstvy";
|
||||
const char * const MSG_M117_V2_CALIBRATION_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||
|
@ -376,8 +376,6 @@ extern const char* const MSG_M105_INVALID_EXTRUDER_LANG_TABLE[1];
|
||||
#define MSG_M105_INVALID_EXTRUDER LANG_TABLE_SELECT_EXPLICIT(MSG_M105_INVALID_EXTRUDER_LANG_TABLE, 0)
|
||||
extern const char* const MSG_M109_INVALID_EXTRUDER_LANG_TABLE[1];
|
||||
#define MSG_M109_INVALID_EXTRUDER LANG_TABLE_SELECT_EXPLICIT(MSG_M109_INVALID_EXTRUDER_LANG_TABLE, 0)
|
||||
extern const char* const MSG_M115_REPORT_LANG_TABLE[1];
|
||||
#define MSG_M115_REPORT LANG_TABLE_SELECT_EXPLICIT(MSG_M115_REPORT_LANG_TABLE, 0)
|
||||
extern const char* const MSG_M117_V2_CALIBRATION_LANG_TABLE[LANG_NUM];
|
||||
#define MSG_M117_V2_CALIBRATION LANG_TABLE_SELECT(MSG_M117_V2_CALIBRATION_LANG_TABLE)
|
||||
extern const char* const MSG_M119_REPORT_LANG_TABLE[1];
|
||||
|
@ -26,7 +26,6 @@ define MSG_FILE_PRINTED "Done printing file"
|
||||
+define MSG_M221_INVALID_EXTRUDER "M221 Invalid extruder "
|
||||
+define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature"
|
||||
+define MSG_M109_INVALID_EXTRUDER "M109 Invalid extruder "
|
||||
+define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
define MSG_COUNT_X " Count X: "
|
||||
+define MSG_ERR_KILLED "Printer halted. kill() called!"
|
||||
+define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
|
||||
|
@ -133,7 +133,6 @@
|
||||
#define MSG_HEATING_COMPLETE "Zahrivani OK."
|
||||
#define MSG_BED_HEATING "Zahrivani bed"
|
||||
#define MSG_BED_DONE "Bed OK."
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
#define MSG_ERR_KILLED "Printer halted. kill() called!"
|
||||
#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
|
||||
#define MSG_RESEND "Resend: "
|
||||
|
@ -116,7 +116,6 @@
|
||||
+ #define(length = 20) MSG_HEATING_COMPLETE "Aufwaermen OK"
|
||||
+ #define MSG_BED_HEATING "Bett aufwaermen"
|
||||
+ #define MSG_BED_DONE "Bett OK"
|
||||
+ #define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
+ #define MSG_ERR_KILLED "Printer gestoppt. kill() aufgerufen!"
|
||||
+ #define MSG_ERR_STOPPED "Drucker aufgrund von Fehlern gestoppt. Fehler beheben und mit M999 neu starten. (Temperatur wird zurueckgesetzt. Nach dem Neustart neu einstellen!)"
|
||||
+ #define MSG_RESEND "Wiederholen: "
|
||||
|
@ -132,7 +132,6 @@
|
||||
#define(length=20) MSG_HEATING_COMPLETE "Heating done."
|
||||
#define MSG_BED_HEATING "Bed Heating"
|
||||
#define MSG_BED_DONE "Bed done"
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
#define MSG_ERR_KILLED "Printer halted. kill() called!"
|
||||
#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
|
||||
#define MSG_RESEND "Resend: "
|
||||
|
@ -96,7 +96,6 @@
|
||||
#define MSG_M221_INVALID_EXTRUDER "M221 Invalid extruder "
|
||||
#define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature"
|
||||
#define MSG_M109_INVALID_EXTRUDER "M109 Invalid extruder "
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
#define MSG_ERR_KILLED "Printer halted. kill() called!"
|
||||
#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
|
||||
#define MSG_RESEND "Resend: "
|
||||
|
@ -105,7 +105,6 @@
|
||||
#define MSG_M221_INVALID_EXTRUDER "M221 Invalid extruder "
|
||||
#define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature"
|
||||
#define MSG_M109_INVALID_EXTRUDER "M109 Invalid extruder "
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
#define MSG_ERR_KILLED "Printer halted. kill() called!"
|
||||
#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
|
||||
#define MSG_RESEND "Resend: "
|
||||
|
@ -96,7 +96,6 @@
|
||||
#define MSG_M221_INVALID_EXTRUDER "M221 Invalid extruder "
|
||||
#define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature"
|
||||
#define MSG_M109_INVALID_EXTRUDER "M109 Invalid extruder "
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1.0.2; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" CUSTOM_MENDEL_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
|
||||
#define MSG_ERR_KILLED "Printer halted. kill() called!"
|
||||
#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
|
||||
#define MSG_RESEND "Resend: "
|
||||
|
Loading…
Reference in New Issue
Block a user