From 20a60f96beccefccc0937a797830e73fee53396b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 6 May 2023 16:32:59 +0200 Subject: [PATCH] posix-h4-nxp: wait after last ack --- port/posix-h4-nxp/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port/posix-h4-nxp/main.c b/port/posix-h4-nxp/main.c index 4ba93bf25..491e1b1af 100644 --- a/port/posix-h4-nxp/main.c +++ b/port/posix-h4-nxp/main.c @@ -48,6 +48,7 @@ #include #include #include +#include #include "btstack_config.h" @@ -156,6 +157,9 @@ static void nxp_phase2(uint8_t status){ printf("Phase 2: Main app\n"); + // assert last ack was sent at original speed + usleep(100000); + // re-configure UART: enable flow control, set initial baudrate transport_config.baudrate_init = btstack_chipset_nxp_get_initial_baudrate(); uart_driver->set_flowcontrol(transport_config.flowcontrol);