fix logger (lost first two chars) and setting meterbus uart (8bit data plus parity, so 9bit incl. parity)

This commit is contained in:
2020-10-29 23:16:03 +01:00
parent 6ccf85abdb
commit 877dd0fca3
8 changed files with 81 additions and 67 deletions

View File

@ -51,7 +51,7 @@ void MX_UART5_Init(void)
huart5.Instance = UART5;
huart5.Init.BaudRate = 2400;
huart5.Init.WordLength = UART_WORDLENGTH_8B;
huart5.Init.WordLength = UART_WORDLENGTH_9B;
huart5.Init.StopBits = UART_STOPBITS_1;
huart5.Init.Parity = UART_PARITY_EVEN;
huart5.Init.Mode = UART_MODE_TX_RX;