D.R.racer 2 years ago
parent
commit
0537908d8c
2 changed files with 4 additions and 6 deletions
  1. 1 1
      Firmware/util.cpp
  2. 3 5
      Firmware/util.h

+ 1 - 1
Firmware/util.cpp

@@ -436,7 +436,7 @@ pStrBegin[*nLength] = '\0';
 return pStrBegin;
 }
 
-void printer_smodel_check(const char *pStrPos) {
+void printer_smodel_check(char *pStrPos) {
 char* pResult;
 size_t nLength,nPrinterNameLength;
 

+ 3 - 5
Firmware/util.h

@@ -1,5 +1,5 @@
-#ifndef UTIL_H
-#define UTIL_H
+#pragma once
+#include <stdint.h>
 
 extern const char* FW_VERSION_STR_P();
 
@@ -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(const char* pStrPos);
+void printer_smodel_check(char* pStrPos);
 void fw_version_check(const char *pVersion);
 void gcode_level_check(uint16_t nGcodeLevel);
 
@@ -112,5 +112,3 @@ void fSetMmuMode(bool bMMu);
 
 #define IP4_STR_SIZE 16
 extern void ip4_to_str(char* dest, uint8_t* IP);
-
-#endif /* UTIL_H */