X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fnordlicht-mini/blobdiff_plain/e06282dce0420369b589ec793c567a8a2cc48603..a73d0f32629447c5eb40fcfc9d1e4fcd8437aae7:/firmware/fnordlicht-firmware/remote.c diff --git a/firmware/fnordlicht-firmware/remote.c b/firmware/fnordlicht-firmware/remote.c index fcaf672..dcef098 100644 --- a/firmware/fnordlicht-firmware/remote.c +++ b/firmware/fnordlicht-firmware/remote.c @@ -430,10 +430,15 @@ void parse_config_startup(struct remote_msg_config_startup_t *msg) storage_save_config(); } +#if UART_TX_ENABLED static void wait_for_uart(void) { while (fifo_fill((fifo_t *)&global_uart.tx) != 0 || !uart_send_complete()); } +#else +/* no need to wait for me */ +#define wait_for_uart() +#endif void parse_bootloader(struct remote_msg_bootloader_t *msg) {