From 16f26d77584ae8c0afb93d4519b0bdad79f84572 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 13 Jul 2023 14:52:32 +0200 Subject: [PATCH] afmt --- linux/acs/StrComHandler.cpp | 6 +++--- mission/acs/str/StarTrackerHandler.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/linux/acs/StrComHandler.cpp b/linux/acs/StrComHandler.cpp index f070efd4..243cb771 100644 --- a/linux/acs/StrComHandler.cpp +++ b/linux/acs/StrComHandler.cpp @@ -683,7 +683,7 @@ ReturnValue_t StrComHandler::sendMessage(CookieIF* cookie, const uint8_t* sendDa const uint8_t* txFrame; size_t frameLen; datalinkLayer.encodeFrame(sendData, sendLen, &txFrame, frameLen); - if(PACKET_WIRETAPPING) { + if (PACKET_WIRETAPPING) { sif::debug << "Sendign STR frame" << std::endl; arrayprinter::print(txFrame, frameLen); } @@ -789,7 +789,7 @@ ReturnValue_t StrComHandler::handleSerialReception() { << std::endl; return FAILED; } else if (bytesRead > 0) { - if(PACKET_WIRETAPPING) { + if (PACKET_WIRETAPPING) { sif::info << "Received " << bytesRead << " bytes from the STR" << std::endl; arrayprinter::print(recBuf.data(), bytesRead); } @@ -806,7 +806,7 @@ ReturnValue_t StrComHandler::readOneReply(uint32_t failParameter) { handleSerialReception(); result = datalinkLayer.checkRingBufForFrame(&replyPtr, replyLen); if (result == returnvalue::OK) { - if(PACKET_WIRETAPPING) { + if (PACKET_WIRETAPPING) { sif::debug << "Received STR reply frame" << std::endl; arrayprinter::print(replyPtr, replyLen); } diff --git a/mission/acs/str/StarTrackerHandler.cpp b/mission/acs/str/StarTrackerHandler.cpp index f380a60c..0532a992 100644 --- a/mission/acs/str/StarTrackerHandler.cpp +++ b/mission/acs/str/StarTrackerHandler.cpp @@ -469,7 +469,8 @@ ReturnValue_t StarTrackerHandler::buildCommandFromCommand(DeviceCommandId_t devi SetTimeActionRequest setTimeRequest{}; timeval tv; Clock::getClock(&tv); - setTimeRequest.unixTime = (static_cast(tv.tv_sec) * 1000 * 1000) + (static_cast(tv.tv_usec)); + setTimeRequest.unixTime = + (static_cast(tv.tv_sec) * 1000 * 1000) + (static_cast(tv.tv_usec)); arc_pack_settime_action_req(&setTimeRequest, commandBuffer, &rawPacketLen); size_t serLen = 0; // Time in milliseconds. Manual serialization because arcsec API ignores endianness.