Hi,
I'm using UART to communicate with a peripheral module and I'm using too the UART.h library. My problem is that i'm sending commands to UART_write() and I want to verify the answer using UART_read(), but I don't know the size (bytes) of the answer to correct fill the buffer, so I introduce a bigger buffer for all the cases and my program stuck because the UART_read() waits until the buffer is full and i don't want that. Do you know what I can do change that?
Best Regards,
Miguel Vieira