implement optional device status updates

This commit is contained in:
Andre Dunford 2022-12-05 22:29:33 -08:00
parent 35cdfa5922
commit 9b38a1fc3d
8 changed files with 49 additions and 16 deletions

View file

@ -428,7 +428,7 @@ void SA::Work() {
// setup for next step
signalIDstep = 0;
if(pointCnt % 10 == 0) {
if(HW::getStatusUpdateFlag() && pointCnt % 10 == 0) {
// 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;