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:
commit
54aa1d6302
5 changed files with 71 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue