apply clang format

This commit is contained in:
2022-02-22 13:49:01 +01:00
parent d35ba2c894
commit 121b4ed974
4 changed files with 249 additions and 248 deletions

View File

@ -1,11 +1,11 @@
#include "UartTestClass.h"
#include "OBSWConfig.h"
#include <fsfw/tasks/TaskFactory.h>
#include <errno.h> // Error integer and strerror() function
#include <fcntl.h> // Contains file controls like O_RDWR
#include <errno.h> // Error integer and strerror() function
#include <fcntl.h> // Contains file controls like O_RDWR
#include <fsfw/tasks/TaskFactory.h>
#include <unistd.h> // write(), read(), close()
#include "OBSWConfig.h"
#include "fsfw/globalfunctions/CRC.h"
#include "fsfw/globalfunctions/DleEncoder.h"
#include "fsfw/globalfunctions/arrayprinter.h"
@ -169,7 +169,7 @@ void UartTestClass::scexInit() {
void UartTestClass::scexPeriodic() {
sif::info << "UartTestClass::scexInit: Sending ping command to SCEX" << std::endl;
int result = prepareScexPing();
if(result != 0) {
if (result != 0) {
return;
};
size_t bytesWritten = write(serialPort, cmdBuf.data(), encodedLen);
@ -190,7 +190,8 @@ void UartTestClass::scexPeriodic() {
sif::debug << "UartTestClass::performPeriodicAction: recv buffer might not be large enough"
<< std::endl;
} else if (bytesRead > 0) {
sif::info << "Received " << bytesRead << " bytes from the Solar Cell Experiment:" << std::endl;
sif::info << "Received " << bytesRead
<< " bytes from the Solar Cell Experiment:" << std::endl;
arrayprinter::print(recBuf.data(), bytesRead, OutputType::HEX, false);
}
} while (bytesRead > 0);