mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2025-01-19 00:34:04 +01:00
machine mode wasn't parsing the first node
This commit is contained in:
parent
a93901fbe0
commit
150bc741fd
@ -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 = ");
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "MachineCommands.h"
|
||||
|
||||
|
||||
bool debugMM = false;
|
||||
bool debugMM = true;
|
||||
// char inputBuffer[INPUTBUFFERLENGTH] = {0};
|
||||
|
||||
File nodeFileMachineMode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user