machine mode wasn't parsing the first node

This commit is contained in:
Kevin Santo Cappuccio 2024-01-03 11:51:11 -08:00
parent a93901fbe0
commit 150bc741fd
2 changed files with 12 additions and 2 deletions

View File

@ -690,7 +690,7 @@ void parseStringToBridges(void)
Serial.println("parsing bridges into array\n\r");
}
int stringIndex = 0;
char delimitersCh[] = ",- \n\r";
char delimitersCh[] = "[,- \n\r";
createSafeString(buffer, 10);
createSafeStringFromCharArray(delimiters, delimitersCh);
@ -701,8 +701,18 @@ void parseStringToBridges(void)
stringIndex = specialFunctionsString.stoken(buffer, stringIndex, delimiters);
Serial.print("buffer = ");
Serial.println(buffer);
Serial.print("stringIndex = ");
Serial.println(stringIndex);
buffer.toInt(path[newBridgeIndex].node1);
Serial.print("path[newBridgeIndex].node1 = ");
Serial.println(path[newBridgeIndex].node1);
if (debugFP)
{
Serial.print("node1 = ");

View File

@ -11,7 +11,7 @@
#include "MachineCommands.h"
bool debugMM = false;
bool debugMM = true;
// char inputBuffer[INPUTBUFFERLENGTH] = {0};
File nodeFileMachineMode;