This commit is contained in:
Tester23 2025-09-13 18:24:47 +02:00
parent 2c05d80c09
commit ecda2584fd
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ void DMX_Show() {
uint32_t breakBaud = 1000000 * 8 / DMX_BREAK_DURATION_MICROS;
HAL_SetBaud(breakBaud);
HAL_UART_SendByte(0);
HAL_UART_Flush();
//HAL_UART_Flush();
HAL_SetBaud(250000);
// restore UART and send DMX data

View File

@ -140,7 +140,7 @@ int HAL_UART_Init(int baud, int parity, bool hwflowc)
#endif
};
uart_param_config(uartnum, &uart_config);
uart_driver_install(uartnum, 512, 512, 0, NULL, 0);
uart_driver_install(uartnum, 4096, 4096, 0, NULL, 0);
uart_enable_rx_intr(uartnum);