1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 09:45:33 +03:00

Merge pull request #2751 from iNavFlight/debug_trace_msp

Add support for sharing DEBUG_TRACE port with an MSP port
This commit is contained in:
Konstantin Sharlaimov 2018-02-12 22:24:50 +10:00 committed by GitHub
commit 54aa1d6302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 71 additions and 18 deletions

View file

@ -261,6 +261,10 @@ void init(void)
serialInit(feature(FEATURE_SOFTSERIAL), SERIAL_PORT_NONE);
#endif
// Initialize MSP here so the DEBUG_TRACE can share a port with MSP
mspFcInit();
mspSerialInit();
#if defined(USE_DEBUG_TRACE)
// Debug trace uses serial output, so we only can init it after serial port is ready
// From this point on we can use DEBUG_TRACE() to produce real-time debugging information
@ -556,9 +560,6 @@ void init(void)
imuInit();
mspFcInit();
mspSerialInit();
#ifdef USE_CLI
cliInit(serialConfig());
#endif