1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Merge pull request #7621 from betaflight/bf-allow-compilation-with-no-serial-ports

Allow compilation of the printf code when no serial ports are used.
This commit is contained in:
Michael Keller 2019-04-14 21:31:31 +12:00 committed by GitHub
commit 65603e49a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 125 additions and 60 deletions

View file

@ -32,7 +32,7 @@
#include "common/axis.h"
#include "common/color.h"
#include "common/maths.h"
#include "common/printf.h"
#include "common/printf_serial.h"
#include "config/config_eeprom.h"
#include "config/feature.h"
@ -246,7 +246,9 @@ void init(void)
}
#endif
printfSupportInit();
#ifdef SERIAL_PORT_COUNT
printfSerialInit();
#endif
systemInit();