mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Fix after rebase
This commit is contained in:
parent
b6263d0109
commit
33b67e860d
5 changed files with 146 additions and 184 deletions
|
@ -303,8 +303,8 @@ void uartIrqHandler(uartPort_t *s)
|
|||
{
|
||||
uint8_t rbyte = (uint8_t)(huart->Instance->RDR & (uint8_t)0xff);
|
||||
|
||||
if (s->port.callback) {
|
||||
s->port.callback(rbyte);
|
||||
if (s->port.rxCallback) {
|
||||
s->port.rxCallback(rbyte);
|
||||
} else {
|
||||
s->port.rxBuffer[s->port.rxBufferHead] = rbyte;
|
||||
s->port.rxBufferHead = (s->port.rxBufferHead + 1) % s->port.rxBufferSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue