mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2024-11-27 17:00:55 +01:00
tiny tweaks to probing
This commit is contained in:
parent
f9640cedd1
commit
85a915fb72
@ -2226,7 +2226,7 @@ void couldntFindPath(int forcePrint)
|
||||
unconnectablePaths[numberOfUnconnectablePaths][0] = path[i].node1;
|
||||
unconnectablePaths[numberOfUnconnectablePaths][1] = path[i].node2;
|
||||
numberOfUnconnectablePaths++;
|
||||
path[i].skip = true;
|
||||
//path[i].skip = true;
|
||||
}
|
||||
}
|
||||
if (debugNTCC2 || forcePrint)
|
||||
|
@ -132,6 +132,7 @@ int probeMode(int pin, int setOrClear)
|
||||
|
||||
if (row[0] != -1 && row[0] != row[1])
|
||||
{
|
||||
row[1] = row[0];
|
||||
|
||||
|
||||
if (connectedRowsIndex > 1)
|
||||
@ -224,8 +225,10 @@ int probeMode(int pin, int setOrClear)
|
||||
// Serial.print("bridgesToPaths\n\r");
|
||||
// delay(18);
|
||||
// showNets();
|
||||
showLEDsCore2 = 1;
|
||||
//showLEDsCore2 = 1;
|
||||
sendAllPathsCore2 = 1;
|
||||
|
||||
delay(25);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -247,8 +250,10 @@ int probeMode(int pin, int setOrClear)
|
||||
// Serial.print("bridgesToPaths\n\r");
|
||||
//delay(18);
|
||||
// showNets();
|
||||
showLEDsCore2 = 1;
|
||||
//showLEDsCore2 = 1;
|
||||
sendAllPathsCore2 = 1;
|
||||
//logoFlash = 1;
|
||||
delay(25);
|
||||
}
|
||||
node1or2 = 0;
|
||||
nodesToConnect[0] = -1;
|
||||
@ -269,15 +274,15 @@ int probeMode(int pin, int setOrClear)
|
||||
|
||||
probeTimeout = millis();
|
||||
}
|
||||
digitalWrite(RESETPIN, LOW);
|
||||
clearAllNTCC();
|
||||
openNodeFile();
|
||||
getNodesToConnect();
|
||||
|
||||
// clearAllNTCC();
|
||||
// openNodeFile();
|
||||
// getNodesToConnect();
|
||||
|
||||
// bridgesToPaths();
|
||||
// // clearLEDs();
|
||||
bridgesToPaths();
|
||||
// clearLEDs();
|
||||
//leds.clear();
|
||||
// assignNetColors();
|
||||
assignNetColors();
|
||||
// // Serial.print("bridgesToPaths\n\r");
|
||||
// delay(18);
|
||||
// // showNets();
|
||||
@ -285,10 +290,10 @@ int probeMode(int pin, int setOrClear)
|
||||
rawOtherColors[1] = 0x550004;
|
||||
showLEDsCore2 = 1;
|
||||
|
||||
// sendAllPathsCore2 = 1;
|
||||
sendAllPathsCore2 = 1;
|
||||
// delay(25);
|
||||
// pinMode(19, INPUT);
|
||||
// delay(300);
|
||||
delay(300);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -616,7 +621,7 @@ int scanRows(int pin)
|
||||
found = SUPPLY_5V;
|
||||
connectedRows[connectedRowsIndex] = found;
|
||||
connectedRowsIndex++;
|
||||
return connectedRows[connectedRowsIndex];
|
||||
//return connectedRows[connectedRowsIndex];
|
||||
}
|
||||
|
||||
else if (probeRead == low)
|
||||
@ -626,7 +631,7 @@ int scanRows(int pin)
|
||||
connectedRowsIndex++;
|
||||
// Serial.print(connectedRows[connectedRowsIndex]);
|
||||
|
||||
return connectedRows[connectedRowsIndex];
|
||||
//return connectedRows[connectedRowsIndex];
|
||||
}
|
||||
|
||||
startProbe();
|
||||
|
Loading…
Reference in New Issue
Block a user