Improve doxygen comments

This commit is contained in:
Henrik Stickann
2022-04-24 13:43:44 +02:00
parent e7d246a2e7
commit a24aa1c5c6
10 changed files with 77 additions and 52 deletions

View File

@@ -1,10 +1,9 @@
#include <sta/uart.hpp>
//#include <cstdio>
#include <sta/printf.hpp>
#include <cstring>
// Include last so macros don't mess with other headers
#include <printf.h>
namespace sta
@@ -143,7 +142,7 @@ namespace sta
void UART::printDec(uintmax_t num, const char * fmt)
{
char buffer[64];
sprintf(buffer, fmt, num);
snprintf(buffer, sizeof(buffer), fmt, num);
print(buffer);
}