diff options
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r-- | src/RepRap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp index 3a74ac81..5774dbf9 100644 --- a/src/RepRap.cpp +++ b/src/RepRap.cpp @@ -726,12 +726,12 @@ void RepRap::Tick() register const uint32_t * stackPtr asm ("r2"); // we want the PSP not the MSP platform->SoftwareReset( (heatTaskStuck) ? (uint16_t)SoftwareResetReason::heaterWatchdog : (uint16_t)SoftwareResetReason::stuckInSpin, - stackPtr + stackPtr + 5 // discard uninteresting registers, keep LR PC PSR #else register const uint32_t * stackPtr asm ("sp"); platform->SoftwareReset( (uint16_t)SoftwareResetReason::stuckInSpin, - stackPtr + 5 // discard the stack used by our tick handler + stackPtr + 5 // discard uninteresting registers, keep LR PC PSR #endif ); } |