Skip to content

Commit

Permalink
Do not check MMU version with M862.3 for MK3|MK3S
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner authored and DRracer committed Jun 27, 2023
1 parent bc9ea48 commit 136ef96
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 136ef96

Please sign in to comment.