FIX:gcode checker error while parse double from str

Change-Id: I25965d7d2e2d4dd4bd4bb622a1ea118bb849abce
Jira: none
(cherry picked from commit 7cb0381dd2b1f0b90546e25b46647497daf6a14e)
This commit is contained in:
BBL\chuan.he 2024-05-30 14:48:13 +08:00 committed by Lane.Wei
parent 4b7e8e6b07
commit 6590f77df4

View File

@ -168,7 +168,7 @@ public:
std::string cmd=input; std::string cmd=input;
size_t read = 0; size_t read = 0;
while (cmd.size() >= 5) while (cmd.find(',') != std::string::npos)
{ {
int pt = 0; int pt = 0;
for (pt = 0; pt < cmd.size(); pt++) { for (pt = 0; pt < cmd.size(); pt++) {