Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2017-06-04 11:54:49 +0300
committerDavid Crocker <dcrocker@eschertech.com>2017-06-04 11:55:06 +0300
commitfe571d4396e4185a7f923aebbcfcb9d426bee217 (patch)
tree68216fa6ba0b1596e3edcf6a9c1d64e3cfbecad8 /src/RepRap.cpp
parenta915f98447d53ff863618b019a5a42573d162a77 (diff)
Version 1.19beta5
Fixed spin hang in Network module caused by output buffer being re-used after it was released Added support for SPI temperature sensor based on an ADC whose output is linear with temperature
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r--src/RepRap.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp
index 5b15e017..e727bf55 100644
--- a/src/RepRap.cpp
+++ b/src/RepRap.cpp
@@ -489,7 +489,9 @@ void RepRap::Tick()
// We can't set motor currents to 0 here because that requires interrupts to be working, and we are in an ISR
}
- platform->SoftwareReset((uint16_t)SoftwareResetReason::stuckInSpin);
+ // We now save the stack when we get stuck in a spin loop
+ register const uint32_t * stackPtr asm ("sp");
+ platform->SoftwareReset((uint16_t)SoftwareResetReason::stuckInSpin, stackPtr + 5);
}
}
}