mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-13 05:59:03 +08:00
Fix warnings in PIO
This commit is contained in:
parent
2d32b4f7e6
commit
0b193fb1b6
@ -69,7 +69,6 @@ const char * encodeString(const char * s){
|
||||
|
||||
bool isValidNumber(String str)
|
||||
{
|
||||
boolean isNum=false;
|
||||
if(!(str.charAt(0) == '+' || str.charAt(0) == '-' || isDigit(str.charAt(0)))) return false;
|
||||
|
||||
for(byte i=1;i<str.length();i++)
|
||||
@ -2080,7 +2079,7 @@ bool COMMAND::check_command (String buffer, tpipe output, bool handlelockserial,
|
||||
if (ESPpos == -1 && (CONFIG::GetFirmwareTarget() == SMOOTHIEWARE)) {
|
||||
ESPpos = buffer.indexOf ("[esp");
|
||||
}
|
||||
if ((ESPpos > -1) && (ESPpos<strlen("echo: " ))){
|
||||
if ((ESPpos > -1) && (ESPpos< (int)strlen("echo: " ))){
|
||||
//is there the second part?
|
||||
int ESPpos2 = buffer.indexOf ("]", ESPpos);
|
||||
if (ESPpos2 > -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user