Only refresh the stack pointer in the RAM inspection pane (not EEPROM)

This commit is contained in:
Nav
2021-12-25 23:08:32 +00:00
parent 9dd2b24339
commit 2c54457e0f

View File

@@ -123,6 +123,8 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optional<std::function
[this] (const Targets::TargetMemoryBuffer& buffer) { [this] (const Targets::TargetMemoryBuffer& buffer) {
this->onMemoryRead(buffer); this->onMemoryRead(buffer);
// Refresh the stack pointer if this is RAM.
if (this->targetMemoryDescriptor.type == Targets::TargetMemoryType::RAM) {
auto* readStackPointerTask = new ReadStackPointer(); auto* readStackPointerTask = new ReadStackPointer();
QObject::connect( QObject::connect(
readStackPointerTask, readStackPointerTask,
@@ -135,6 +137,7 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optional<std::function
this->insightWorker.queueTask(readStackPointerTask); this->insightWorker.queueTask(readStackPointerTask);
} }
}
); );
QObject::connect( QObject::connect(