Global Printer functions #78

Merged
gaisser merged 8 commits from KSat/fsfw:mueller_globalPrinter into master 2020-06-04 14:04:42 +02:00
Showing only changes of commit a6e0ab61ea - Show all commits

View File

@ -20,15 +20,17 @@ void printer::printHex(uint8_t *data, size_t size) {
}
}
sif::info << std::dec;
sif::info << " ] " << std::endl;
sif::info << "]" << std::endl;
}
void printer::printDec(uint8_t *data, size_t size) {
sif::info << std::dec;
for(size_t i = 0; i < size; i++) {
sif::info << "0x" << static_cast<int>(data[i]);
if(i < size - 1){
sif::info << " , ";
}
}
sif::info << "]" << std::endl;
}