respond to InitiateSweep with nack when misconfigured

This commit is contained in:
Andre Dunford 2022-12-17 01:19:46 -08:00
parent 9a23938180
commit 795b1eb3fa
3 changed files with 8 additions and 3 deletions

View file

@ -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: