Do not check MMU version with `M862.3` for MK3|MK3S

This commit is contained in:
3d-gussner 2023-06-26 10:08:44 +02:00 committed by DRracer
parent bc9ea48779
commit 136ef9696d
1 changed files with 5 additions and 5 deletions

View File

@ -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(