Fix lost changes during rebase

This commit is contained in:
Guðni Már Gilbert 2022-09-10 15:30:46 +00:00 committed by D.R.racer
parent fae420f1e2
commit e39d1458a1
2 changed files with 3 additions and 4 deletions

View File

@ -420,7 +420,7 @@ void gcode_level_check(uint16_t nGcodeLevel) {
#define GCODE_DELIMITER '"'
#define ELLIPSIS "..."
char *code_string(char *pStr, size_t *nLength) {
char *code_string(const char *pStr, size_t *nLength) {
char* pStrBegin;
char* pStrEnd;
@ -432,11 +432,10 @@ pStrEnd=strchr(pStrBegin,GCODE_DELIMITER);
if(!pStrEnd)
return(NULL);
*nLength=pStrEnd-pStrBegin;
pStrBegin[*nLength] = '\0';
return pStrBegin;
}
void printer_smodel_check(char *pStrPos) {
void printer_smodel_check(const char *pStrPos) {
char* pResult;
size_t nLength,nPrinterNameLength;

View File

@ -104,7 +104,7 @@ extern ClCheckGcode oCheckGcode;
void fCheckModeInit();
void nozzle_diameter_check(uint16_t nDiameter);
void printer_model_check(uint16_t nPrinterModel);
void printer_smodel_check(char* pStrPos);
void printer_smodel_check(const char* pStrPos);
void fw_version_check(const char *pVersion);
void gcode_level_check(uint16_t nGcodeLevel);