1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Cleanup 4way-if from cleanflight

This commit is contained in:
4712 2016-06-13 00:41:45 +02:00
parent 7aa8b623bd
commit a40c0c0442
8 changed files with 938 additions and 1085 deletions

View file

@ -93,9 +93,7 @@
#include "serial_msp.h"
#ifdef USE_SERIAL_4WAY_BLHELI_INTERFACE
#include "io/serial_4way.h"
#endif
static serialPort_t *mspSerialPort;
@ -1736,7 +1734,7 @@ static bool processInCommand(void)
// switch all motor lines HI
// reply the count of ESC found
headSerialReply(1);
serialize8(Initialize4WayInterface());
serialize8(esc4wayInit());
// because we do not come back after calling Process4WayInterface
// proceed with a success reply first
tailSerialReply();
@ -1747,7 +1745,7 @@ static bool processInCommand(void)
// rem: App: Wait at least appx. 500 ms for BLHeli to jump into
// bootloader mode before try to connect any ESC
// Start to activate here
Process4WayInterface(currentPort, writer);
esc4wayProcess(currentPort->port);
// former used MSP uart is still active
// proceed as usual with MSP commands
break;