mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2024-11-23 23:00:57 +01:00
fixed not clearing connections between Wokwi updates
This commit is contained in:
parent
de4b0a323c
commit
c957b0e754
@ -0,0 +1 @@
|
||||
{"hostname":"Kevins-MacBook-Pro","username":"kevinsanto"}
|
@ -309,7 +309,7 @@ void inputNodeFileList(int addRotaryConnections) {
|
||||
|
||||
void savePreformattedNodeFile(int source, int slot, int keepEncoder) {
|
||||
|
||||
nodeFile = LittleFS.open("nodeFileSlot" + String(slot) + ".txt", "w+");
|
||||
nodeFile = LittleFS.open("nodeFileSlot" + String(slot) + ".txt", "w");
|
||||
// Serial.println("Slot " + String(slot));
|
||||
|
||||
// Serial.println(nodeFile);
|
||||
|
@ -171,7 +171,7 @@ int readInNodesArduino = 0;
|
||||
|
||||
int restoredNodeFile = 0;
|
||||
|
||||
const char firmwareVersion[] = "1.3.18"; //// remember to update this
|
||||
const char firmwareVersion[] = "1.3.19"; //// remember to update this
|
||||
|
||||
int firstLoop = 1;
|
||||
volatile int probeActive = 1;
|
||||
@ -731,7 +731,7 @@ skipinput:
|
||||
// leds.clear();
|
||||
// assignNetColors();
|
||||
digitalWrite(RESETPIN, HIGH);
|
||||
delayMicroseconds(100);
|
||||
delayMicroseconds(3900);
|
||||
// Serial.print("bridgesToPaths\n\r");
|
||||
digitalWrite(RESETPIN, LOW);
|
||||
// showNets();
|
||||
@ -759,8 +759,8 @@ skipinput:
|
||||
// sendAllPathsCore2 = 1;
|
||||
timer = millis();
|
||||
|
||||
// clearNodeFile(netSlot);
|
||||
|
||||
//clearNodeFile(netSlot);
|
||||
digitalWrite(RESETPIN, HIGH);
|
||||
if (connectFromArduino != '\0') {
|
||||
serSource = 1;
|
||||
} else {
|
||||
@ -773,11 +773,11 @@ skipinput:
|
||||
openNodeFile(netSlot);
|
||||
getNodesToConnect();
|
||||
// Serial.print("openNF\n\r");
|
||||
digitalWrite(RESETPIN, HIGH);
|
||||
|
||||
bridgesToPaths();
|
||||
clearLEDs();
|
||||
assignNetColors();
|
||||
delay(1);
|
||||
delay(10);
|
||||
// Serial.print("bridgesToPaths\n\r");
|
||||
digitalWrite(RESETPIN, LOW);
|
||||
// showNets();
|
||||
@ -1224,7 +1224,7 @@ void loadFile(int slot) {
|
||||
clearLEDs();
|
||||
assignNetColors();
|
||||
digitalWrite(RESETPIN, HIGH);
|
||||
delayMicroseconds(100);
|
||||
delayMicroseconds(2000);
|
||||
// Serial.print("bridgesToPaths\n\r");
|
||||
digitalWrite(RESETPIN, LOW);
|
||||
// showNets();
|
||||
@ -1271,6 +1271,9 @@ void loop1() // core 2 handles the LEDs and the CH446Q8
|
||||
}
|
||||
|
||||
if (sendAllPathsCore2 == 1) {
|
||||
digitalWrite(RESETPIN, HIGH);
|
||||
delayMicroseconds(3900);
|
||||
digitalWrite(RESETPIN, LOW);
|
||||
delayMicroseconds(6200);
|
||||
sendAllPaths();
|
||||
delayMicroseconds(2200);
|
||||
|
Loading…
Reference in New Issue
Block a user