Fix an issue where findaPressed is never set

This caused instant FINDA runout when the print starts. Now fixed :)
This commit is contained in:
Guðni Már Gilbert 2022-09-10 16:13:58 +00:00 committed by D.R.racer
parent b292a5bf4e
commit 1010f23959
1 changed files with 2 additions and 0 deletions

View File

@ -316,6 +316,7 @@ StepStatus ProtocolLogic::CommandStep() {
SendFINDAQuery();
return Processing;
case ScopeState::FINDAReqSent:
findaPressed = rsp.paramValue;
SendReadRegister(4, ScopeState::StatisticsSent);
scopeState = ScopeState::StatisticsSent;
return Processing;
@ -392,6 +393,7 @@ StepStatus ProtocolLogic::IdleStep() {
SendFINDAQuery();
return Processing;
case ScopeState::FINDAReqSent:
findaPressed = rsp.paramValue;
SendReadRegister(4, ScopeState::StatisticsSent);
scopeState = ScopeState::StatisticsSent;
return Processing;