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:
commit
65603e49a2
6 changed files with 125 additions and 60 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue