Renaming packet types, implementing different packet contents per hardware version

This commit is contained in:
Jan Käberich 2023-02-20 13:08:31 +01:00
parent 83dbfadf20
commit 9b4865dceb
34 changed files with 2184 additions and 500 deletions

View file

@ -351,9 +351,9 @@ void VNA::Work() {
}
// Compile info packet
Protocol::PacketInfo packet;
packet.type = Protocol::PacketType::DeviceStatusV1;
packet.type = Protocol::PacketType::DeviceStatus;
if(HW::getStatusUpdateFlag()) {
HW::getDeviceStatus(&packet.statusV1, true);
HW::getDeviceStatus(&packet.status, true);
Communication::Send(packet);
}
// do not reset unlevel flag here, as it is calculated only once at the setup of the sweep