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

@ -432,8 +432,8 @@ void SA::Work() {
// send device info every nth point
FPGA::Enable(FPGA::Periphery::SourceChip); // needs to enable the chip to get a valid temperature reading
Protocol::PacketInfo packet;
packet.type = Protocol::PacketType::DeviceStatusV1;
HW::getDeviceStatus(&packet.statusV1, true);
packet.type = Protocol::PacketType::DeviceStatus;
HW::getDeviceStatus(&packet.status, true);
FPGA::Disable(FPGA::Periphery::SourceChip);
Communication::Send(packet);
}