All processing moved from ISR to main loop

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-11-11 16:51:00 +01:00
parent 6082f7f4a7
commit 8fc8c20697
3 changed files with 18 additions and 32 deletions

View File

@@ -179,7 +179,7 @@ void qspDecodeIncomingFrame(
frameId = (incomingByte >> 4) & 0x0f;
payloadLength = incomingByte & 0x0f;
qsp->protocolState = QSP_STATE_FRAME_TYPE_RECEIVED;
}
else if (qsp->protocolState == QSP_STATE_FRAME_TYPE_RECEIVED)
@@ -213,7 +213,6 @@ void qspDecodeIncomingFrame(
qsp->lastFrameReceivedAt[frameId] = millis();
}
qsp->anyFrameRecivedAt = millis();
switch (frameId) {
case QSP_FRAME_RC_DATA:
qspDecodeRcDataFrame(qsp, ppm);
@@ -234,7 +233,6 @@ void qspDecodeIncomingFrame(
txDeviceState->roundtrip += (uint32_t) qsp->payload[3] << 24;
txDeviceState->roundtrip = (micros() - txDeviceState->roundtrip) / 1000;
break;
default: