Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#4249 from 3d-gussner/MK3_3130_MK3SMMU3
Browse files Browse the repository at this point in the history
Update check MMU version and change to MMU3
  • Loading branch information
3d-gussner authored Jun 28, 2023
2 parents bfdef2c + 0d8b3ce commit 5dc6ccb
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 14 deletions.
4 changes: 3 additions & 1 deletion Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7921,9 +7921,11 @@ SERIAL_PROTOCOLPGM("\n\n");
- MK2.5SMMU2S (20252)
- MK3 (300)
- MK3MMU2 (20300)
- MK3MMU3 (30300)
- MK3S (302)
- MK3SMMU2S (20302)
- MK3SMMU3 (30302)
*/
case 862: // M862: print checking
{
Expand Down
2 changes: 2 additions & 0 deletions Firmware/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,10 @@ static_assert(sizeof(Sheets) == EEPROM_SHEETS_SIZEOF, "Sizeof(Sheets) is not EEP
| ^ | ^ | ^ | 1c 4fh 20252 | ^ | PRINTER_MK2.5S with MMU2S | ??? | ^
| ^ | ^ | ^ | 2c 01h 300 | ^ | PRINTER_MK3 | ??? | ^
| ^ | ^ | ^ | 4c 4fh 20300 | ^ | PRINTER_MK3 with MMU2 | ??? | ^
| ^ | ^ | ^ | 5c 76h 30300 | ^ | PRINTER_MK3 with MMU3 | ??? | ^
| ^ | ^ | ^ | 2e 01h 302 | ^ | PRINTER_MK3S | ??? | ^
| ^ | ^ | ^ | 4e 4fh 20302 | ^ | PRINTER_MK3S with MMU2S | ??? | ^
| ^ | ^ | ^ | 5e 76h 30302 | ^ | PRINTER_MK3S with MMU3 | ??? | ^
| 0x0EEC 3820 | uint16 | EEPROM_BOARD_TYPE | ??? | ff ffh 65535 | Board Type | ??? | D3 Ax0eec C2
| ^ | ^ | ^ | c8 00h 200 | ^ | BOARD_RAMBO_MINI_1_0 | ??? | ^
| ^ | ^ | ^ | cb 00h 203 | ^ | BOARD_RAMBO_MINI_1_3 | ??? | ^
Expand Down
4 changes: 4 additions & 0 deletions Firmware/printers.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
#define PRINTER_MK3_NAME "MK3"
#define PRINTER_MK3_MMU2 20300
#define PRINTER_MK3_MMU2_NAME "MK3MMU2"
#define PRINTER_MK3_MMU3 30300
#define PRINTER_MK3_MMU3_NAME "MK3MMU3"
// *** MK3S
#define PRINTER_MK3S 302
#define PRINTER_MK3S_NAME "MK3S"
#define PRINTER_MK3S_MMU2 20302
#define PRINTER_MK3S_MMU2_NAME "MK3SMMU2S"
#define PRINTER_MK3S_MMU3 30302
#define PRINTER_MK3S_MMU3_NAME "MK3SMMU3"

#endif //PRINTERS_H
10 changes: 5 additions & 5 deletions Firmware/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,14 @@ return pStrBegin;

void printer_smodel_check(const char *pStrPos, const char *actualPrinterSModel) {
char* pResult;
size_t nLength,nPrinterNameLength;
size_t nLength;

nPrinterNameLength = strlen_P(actualPrinterSModel);
pResult=code_string(pStrPos,&nLength);

if(pResult != NULL && nLength == nPrinterNameLength) {
// Only compare them if the lengths match
if (strncmp_P(pResult, actualPrinterSModel, nLength) == 0) return;
if(pResult != NULL) {
// Only compare first 6 chars on MK3|MK3S
if (strncmp_P(pResult, PSTR("MK3"), 3) == 0) nLength = 6;
if (strncmp_P(pResult, actualPrinterSModel, nLength) == 0) return;
}

render_M862_warnings(
Expand Down
4 changes: 2 additions & 2 deletions Firmware/variants/1_75mm_MK3-EINSy10a-E3DREVO.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#define PRINTER_TYPE PRINTER_MK3
#define PRINTER_NAME PRINTER_MK3_NAME
#define PRINTER_NAME_ALTERNATE PRINTER_MK3S_NAME //the other similar printer to this.
#define PRINTER_MMU_TYPE PRINTER_MK3_MMU2
#define PRINTER_MMU_NAME PRINTER_MK3_MMU2_NAME
#define PRINTER_MMU_TYPE PRINTER_MK3_MMU3
#define PRINTER_MMU_NAME PRINTER_MK3_MMU3_NAME
#define FILAMENT_SIZE "1_75mm_MK3"
#define NOZZLE_TYPE "E3DREVO"

Expand Down
4 changes: 2 additions & 2 deletions Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#define PRINTER_TYPE PRINTER_MK3
#define PRINTER_NAME PRINTER_MK3_NAME
#define PRINTER_NAME_ALTERNATE PRINTER_MK3S_NAME //the other similar printer to this.
#define PRINTER_MMU_TYPE PRINTER_MK3_MMU2
#define PRINTER_MMU_NAME PRINTER_MK3_MMU2_NAME
#define PRINTER_MMU_TYPE PRINTER_MK3_MMU3
#define PRINTER_MMU_NAME PRINTER_MK3_MMU3_NAME
#define FILAMENT_SIZE "1_75mm_MK3"
#define NOZZLE_TYPE "E3Dv6full"

Expand Down
4 changes: 2 additions & 2 deletions Firmware/variants/1_75mm_MK3S-EINSy10a-E3DREVO.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#define PRINTER_TYPE PRINTER_MK3S
#define PRINTER_NAME PRINTER_MK3S_NAME
#define PRINTER_NAME_ALTERNATE PRINTER_MK3_NAME //the other similar printer to this.
#define PRINTER_MMU_TYPE PRINTER_MK3S_MMU2
#define PRINTER_MMU_NAME PRINTER_MK3S_MMU2_NAME
#define PRINTER_MMU_TYPE PRINTER_MK3S_MMU3
#define PRINTER_MMU_NAME PRINTER_MK3S_MMU3_NAME
#define FILAMENT_SIZE "1_75mm_MK3S"
#define NOZZLE_TYPE "E3DREVO"

Expand Down
4 changes: 2 additions & 2 deletions Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#define PRINTER_TYPE PRINTER_MK3S
#define PRINTER_NAME PRINTER_MK3S_NAME
#define PRINTER_NAME_ALTERNATE PRINTER_MK3_NAME //the other similar printer to this.
#define PRINTER_MMU_TYPE PRINTER_MK3S_MMU2
#define PRINTER_MMU_NAME PRINTER_MK3S_MMU2_NAME
#define PRINTER_MMU_TYPE PRINTER_MK3S_MMU3
#define PRINTER_MMU_NAME PRINTER_MK3S_MMU3_NAME
#define FILAMENT_SIZE "1_75mm_MK3S"
#define NOZZLE_TYPE "E3Dv6full"

Expand Down

0 comments on commit 5dc6ccb

Please sign in to comment.