mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Merge branch 'softserial-track-errors' into hott-telemetry
Conflicts: src/drv_softserial.c
This commit is contained in:
commit
8138bc8cf3
4 changed files with 64 additions and 26 deletions
|
@ -186,14 +186,19 @@ int main(void)
|
|||
//serialWrite(core.mainport, b);
|
||||
};
|
||||
}
|
||||
|
||||
if (loopbackPort2) {
|
||||
while (serialTotalBytesWaiting(loopbackPort2)) {
|
||||
#ifndef OLIMEXINO // PB0/D27 and PB1/D28 internally connected so this would result in a continuous stream of data
|
||||
serialRead(loopbackPort2);
|
||||
#else
|
||||
uint8_t b = serialRead(loopbackPort2);
|
||||
serialWrite(loopbackPort2, b);
|
||||
//serialWrite(core.mainport, 0x02);
|
||||
//serialWrite(core.mainport, b);
|
||||
#endif // OLIMEXINO
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue