mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 22:45:23 +00:00
implement sweep standby configuration
This commit is contained in:
parent
e35766c7b8
commit
08fa3fa0a0
5 changed files with 32 additions and 6 deletions
|
|
@ -183,6 +183,11 @@ inline void App_Process() {
|
|||
Communication::SendWithoutPayload(Protocol::PacketType::Ack);
|
||||
}
|
||||
break;
|
||||
case Protocol::PacketType::InitiateSweep: {
|
||||
VNA::InitiateSweep();
|
||||
Communication::SendWithoutPayload(Protocol::PacketType::Ack);
|
||||
}
|
||||
break;
|
||||
case Protocol::PacketType::SetIdle:
|
||||
HW::SetMode(HW::Mode::Idle);
|
||||
sweepActive = false;
|
||||
|
|
@ -314,7 +319,7 @@ inline void App_Process() {
|
|||
}
|
||||
}
|
||||
}
|
||||
if(HW::TimedOut()) {
|
||||
if(!VNA::GetStandbyMode() && HW::TimedOut()) {
|
||||
HW::SetMode(HW::Mode::Idle);
|
||||
// insert the last received packet (restarts the timed out operation)
|
||||
Communication::BlockNextAck();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue