Skip to content

Commit

Permalink
Replaced nanoprintf with stdio's vsnprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Nov 15, 2023
1 parent 1d20caa commit 6524219
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 394 deletions.
4 changes: 2 additions & 2 deletions include/comm_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include "interface/comm_link.h"
#include "interface/param_listener.h"

#include "nanoprintf.h"

#include <stdio.h>
#include <stdarg.h>
#include <cstdint>
#include <functional>

Expand Down
127 changes: 0 additions & 127 deletions include/nanoprintf.h

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/rosflight.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ ROSFLIGHT_SRC = rosflight.cpp \
comm_manager.cpp \
command_manager.cpp \
rc.cpp \
mixer.cpp \
nanoprintf.cpp
mixer.cpp

# Math Source Files
VPATH := $(VPATH):$(TURBOMATH_DIR)
Expand Down
2 changes: 1 addition & 1 deletion src/comm_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void CommManager::log(CommLinkInterface::LogSeverity severity, const char* fmt,
va_list args;
va_start(args, fmt);
char text[LOG_MSG_SIZE];
rosflight_firmware::nanoprintf::tfp_sprintf(text, fmt, args);
vsnprintf(text, LOG_MSG_SIZE, fmt, args);
va_end(args);

if (initialized_ && connected_)
Expand Down
Loading

0 comments on commit 6524219

Please sign in to comment.