1
0
Fork 0
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:
Sami Korhonen 2016-10-15 16:25:01 +03:00
parent b6263d0109
commit 33b67e860d
5 changed files with 146 additions and 184 deletions

View file

@ -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;