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

Merge pull request #179 from iNavFlight/cleanup-4way

Cleanup 4way interface
This commit is contained in:
Konstantin Sharlaimov 2016-05-13 09:49:02 +10:00
commit 8f49814985
8 changed files with 927 additions and 1081 deletions

View file

@ -1568,7 +1568,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();
@ -1579,7 +1579,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;