Skip to content

Commit

Permalink
Merge pull request #409 from rosflight/remove-nanoprintf
Browse files Browse the repository at this point in the history
Replaced nanoprintf with vsnprintf
  • Loading branch information
bsutherland333 authored Nov 15, 2023
2 parents 1d20caa + ca26e3a commit 8f8ea1c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 393 deletions.
3 changes: 2 additions & 1 deletion include/comm_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
#include "interface/comm_link.h"
#include "interface/param_listener.h"

#include "nanoprintf.h"
#include <stdarg.h>
#include <stdio.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 8f8ea1c

Please sign in to comment.