mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-28 06:24:10 +01:00
Enabled printf-stdarg on all targets, implemented vsnprintf() (needed for logging)
This commit is contained in:
parent
6031200aea
commit
9dbac5d060
@ -246,6 +246,12 @@ int snprintf(char *buf, size_t count, const char *format, ...)
|
||||
return print(count, &buf, format, args);
|
||||
}
|
||||
|
||||
// TK: added for alternative parameter passing
|
||||
int vsnprintf(char *buf, size_t count, const char *format, va_list args)
|
||||
{
|
||||
return print(count, &buf, format, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -68,7 +68,7 @@ ifndef TESTAPP
|
||||
#endif
|
||||
|
||||
## Misc library functions
|
||||
SRC += $(FLIGHTLIB)/printf2.c
|
||||
#SRC += $(FLIGHTLIB)/printf2.c
|
||||
SRC += $(FLIGHTLIB)/WorldMagModel.c
|
||||
|
||||
## UAVObjects
|
||||
|
@ -103,6 +103,7 @@ SRC += $(FLIGHTLIB)/sanitycheck.c
|
||||
SRC += $(FLIGHTLIB)/CoordinateConversions.c
|
||||
SRC += $(MATHLIB)/sin_lookup.c
|
||||
SRC += $(MATHLIB)/pid.c
|
||||
SRC += $(FLIGHTLIB)/printf-stdarg.c
|
||||
|
||||
## Modules
|
||||
SRC += $(foreach mod, $(MODULES), $(sort $(wildcard $(OPMODULEDIR)/$(mod)/*.c)))
|
||||
|
Loading…
Reference in New Issue
Block a user