usb_serial.c: Avoid inline error

We've got with -Winline:
usb_serial.c:761:13: error: inlining failed in call to 'usb_wait_in_ready': call is unlikely and code size would grow [-Werror=inline]

We want to inline this in the USB ISR. So let's force it and prevent the error.
This commit is contained in:
Nico Tonnhofer 2017-07-20 21:19:00 +02:00
parent a88bf4ef16
commit f4d1a6a33b
1 changed files with 1 additions and 0 deletions

View File

@ -757,6 +757,7 @@ ISR(USB_GEN_vect)
// Misc functions to wait for ready and send/receive packets
static void usb_wait_in_ready(void) __attribute__ ((always_inline));
inline void usb_wait_in_ready(void)
{
while (!(UEINTX & (1<<TXINI))) ;