mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
respond to InitiateSweep with nack when misconfigured
This commit is contained in:
parent
9a23938180
commit
795b1eb3fa
3 changed files with 8 additions and 3 deletions
|
|
@ -184,8 +184,13 @@ inline void App_Process() {
|
|||
}
|
||||
break;
|
||||
case Protocol::PacketType::InitiateSweep: {
|
||||
VNA::InitiateSweep();
|
||||
Communication::SendWithoutPayload(Protocol::PacketType::Ack);
|
||||
if(VNA::GetStandbyMode()) {
|
||||
VNA::InitiateSweep();
|
||||
Communication::SendWithoutPayload(Protocol::PacketType::Ack);
|
||||
} else {
|
||||
Communication::SendWithoutPayload(Protocol::PacketType::Nack);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
case Protocol::PacketType::SetIdle:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue