1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Fixed issue #15, new uart building under gcc toolchain, thanks!

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@383 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-08-22 13:37:45 +00:00
parent cbb580f753
commit 1441d46323
3 changed files with 3 additions and 7 deletions

View file

@ -30,6 +30,7 @@
*/
#include "board.h"
#include "mw.h"
#ifdef USE_LAME_PRINTF
#define PRINTF_LONG_SUPPORT
@ -227,7 +228,7 @@ void tfp_printf(char *fmt, ...)
va_start(va, fmt);
tfp_format(stdout_putp, stdout_putf, fmt, va);
va_end(va);
while (!isUartTransmitEmpty());
while (!isUartTransmitEmpty(core.mainport));
}
static void putcp(void *p, char c)
@ -235,8 +236,6 @@ static void putcp(void *p, char c)
*(*((char **) p))++ = c;
}
void tfp_sprintf(char *s, char *fmt, ...)
{
va_list va;