diff options
Diffstat (limited to 'os/hal/ports/AVR')
-rw-r--r-- | os/hal/ports/AVR/serial_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/AVR/serial_lld.c b/os/hal/ports/AVR/serial_lld.c index c8967b381..dfb0a889e 100644 --- a/os/hal/ports/AVR/serial_lld.c +++ b/os/hal/ports/AVR/serial_lld.c @@ -252,7 +252,7 @@ OSAL_IRQ_HANDLER(AVR_SD1_TX_VECT) { osalSysLockFromISR();
b = sdRequestDataI(&SD1);
osalSysUnlockFromISR();
- if (b < Q_OK)
+ if (b < MSG_OK)
UCSR0B &= ~(1 << UDRIE0);
else
UDR0 = b;
@@ -295,7 +295,7 @@ OSAL_IRQ_HANDLER(AVR_SD2_TX_VECT) { osalSysLockFromISR();
b = sdRequestDataI(&SD2);
osalSysUnlockFromISR();
- if (b < Q_OK)
+ if (b < MSG_OK)
UCSR1B &= ~(1 << UDRIE1);
else
UDR1 = b;
|