fsfw/globalfunctions/printer.cpp

14 lines
375 B
C++
Raw Normal View History

2020-05-11 12:22:06 +02:00
#include <framework/globalfunctions/printer.h>
#include <framework/serviceinterface/ServiceInterfaceStream.h>
void printer::print(uint8_t *data, size_t size) {
sif::info << "StorageAccessor: Printing data: [";
for(size_t i = 0; i < size; i++) {
sif::info << std::hex << (int)data[i];
if(i < size - 1){
sif::info << " , ";
}
}
sif::info << " ] " << std::endl;
}