mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
implement optional device status updates
This commit is contained in:
parent
35cdfa5922
commit
9b38a1fc3d
8 changed files with 49 additions and 16 deletions
|
|
@ -173,6 +173,16 @@ inline void App_Process() {
|
|||
Communication::Send(p);
|
||||
}
|
||||
break;
|
||||
case Protocol::PacketType::StopStatusUpdates: {
|
||||
HW::setStatusUpdateFlag(false);
|
||||
Communication::SendWithoutPayload(Protocol::PacketType::Ack);
|
||||
}
|
||||
break;
|
||||
case Protocol::PacketType::StartStatusUpdates: {
|
||||
HW::setStatusUpdateFlag(true);
|
||||
Communication::SendWithoutPayload(Protocol::PacketType::Ack);
|
||||
}
|
||||
break;
|
||||
case Protocol::PacketType::SetIdle:
|
||||
HW::SetMode(HW::Mode::Idle);
|
||||
sweepActive = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue