mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Move port telemetry port configuration logic into common telemetry code.
Update software serial to support RX, TX or RX&TX modes. Update serial API to allow on-the-fly changing of serial port mode. Update HoTT to change serial port mode when transmitting.
This commit is contained in:
parent
1051cbcf52
commit
ac0f3e9186
12 changed files with 169 additions and 64 deletions
|
@ -189,7 +189,7 @@ int main(void)
|
|||
if (loopbackPort2) {
|
||||
while (serialTotalBytesWaiting(loopbackPort2)) {
|
||||
uint8_t b = serialRead(loopbackPort2);
|
||||
serialWrite(loopbackPort1, b);
|
||||
serialWrite(loopbackPort2, b);
|
||||
//serialWrite(core.mainport, 0x02);
|
||||
//serialWrite(core.mainport, b);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue