Skip to content
Snippets Groups Projects
Commit e7d608bd authored by Benjamin Koch's avatar Benjamin Koch
Browse files

increase default baud rate

parent 4eb7bd07
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,8 @@ def main():
# retry_on_empty=False,
# close_comm_on_error=False,
# strict=True,
baudrate=19200,
#baudrate=19200,
baudrate=115200*2,
parity="E",
)
client.connect()
......
......@@ -618,7 +618,8 @@ async fn main2(spawner: Spawner) {
// use 19200 baud in 8E1 mode - not great but it's the Modbus default
let mut uart_config = uart::Config::default();
uart_config.baudrate = 19200;
//uart_config.baudrate = 19200;
uart_config.baudrate = 115200*2;
uart_config.parity = Parity::ParityEven;
let rs485 = RS485::new(
p.UART0, rx, tx, tx_en, interrupt::take!(UART0_IRQ), p.DMA_CH1, uart_config,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment