diff --git a/mission/acs/str/ArcsecDatalinkLayer.cpp b/mission/acs/str/ArcsecDatalinkLayer.cpp index b15e8e64..c1082fc7 100644 --- a/mission/acs/str/ArcsecDatalinkLayer.cpp +++ b/mission/acs/str/ArcsecDatalinkLayer.cpp @@ -30,13 +30,13 @@ ReturnValue_t ArcsecDatalinkLayer::checkRingBufForFrame(const uint8_t** decodedF } // Now we can try decoding the whole frame. size_t encodedDataSize = 0; - slip_error_t slipError = slip_decode_frame( - decodedRxFrame, &rxFrameSize, rxAnalysisBuffer + startIdx, - idx - startIdx + 1, &encodedDataSize, ARC_DEF_SAGITTA_SLIP_ID); + slip_error_t slipError = + slip_decode_frame(decodedRxFrame, &rxFrameSize, rxAnalysisBuffer + startIdx, + idx - startIdx + 1, &encodedDataSize, ARC_DEF_SAGITTA_SLIP_ID); decodeRingBuf.deleteData(idx + 1); switch (slipError) { case (SLIP_OK): { - if(decodedFrame != nullptr) { + if (decodedFrame != nullptr) { *decodedFrame = decodedRxFrame; } frameLen = rxFrameSize; @@ -72,9 +72,7 @@ ReturnValue_t ArcsecDatalinkLayer::feedData(const uint8_t* rawData, size_t rawDa return decodeRingBuf.writeData(rawData, rawDataLen); } -void ArcsecDatalinkLayer::reset() { - decodeRingBuf.clear(); -} +void ArcsecDatalinkLayer::reset() { decodeRingBuf.clear(); } void ArcsecDatalinkLayer::encodeFrame(const uint8_t* data, size_t length, const uint8_t** txFrame, size_t& size) {