Did add some code for updating the RigState architecture. Not ready to swap it out yet, however.

This commit is contained in:
Rob French
2021-02-11 22:00:24 -06:00
parent c3cc9a7cf7
commit 814fe6c733
5 changed files with 196 additions and 16 deletions

View File

@@ -997,23 +997,10 @@ UBitxRigState catState;
void idle_process()
{
// KC4UPR 2021-02-05 added update process for Raduino-TeensyDSP coordination
// Note, need to not have to copy this every time...
if (vfoActive == VFO_A) {
rigState.vfo[0] = frequency;
rigState.flags &= ~UBITX_VFOB_FLAG;
} else if (vfoActive == VFO_B) {
rigState.vfo[1] = frequency;
rigState.flags |= UBITX_VFOB_FLAG;
}
updateStateFromRaduino(rigState);
doRaduinoToTeensy(&rigState);
if (vfoActive == VFO_A) {
if (rigState.vfo[0] != frequency) {
setFrequency(rigState.vfo[0]);
} else if (vfoActive == VFO_B) {
setFrequency(rigState.vfo[1]);
}
}
updateRaduinoFromState(rigState);
//S-Meter Display
if (((displayOption1 & 0x08) == 0x08 && (sdrModeOn == 0)) && (++checkCountSMeter > SMeterLatency))
{