Skip to content

Commit 4a680a0

Browse files
committed
uart: using inline for a not trivial function actually saves 16 flash bytes
1 parent 96e2fa2 commit 4a680a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cores/esp8266/uart.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ void uart_stop_isr(uart_t* uart)
214214
ETS_UART_INTR_ATTACH(NULL, NULL);
215215
}
216216

217-
218-
void uart_do_write_char(uart_t* uart, char c)
217+
inline void uart_do_write_char(uart_t* uart, char c)
219218
{
220219
while((USS(uart->uart_nr) >> USTXC) >= 0x7f);
221220
USF(uart->uart_nr) = c;

0 commit comments

Comments
 (0)