Mercurial > public > ostc4
diff Discovery/Src/tComm.c @ 895:94535e672583 Evo_2_23
Zusammenf?hren
author | heinrichsweikamp |
---|---|
date | Wed, 18 Sep 2024 14:31:06 +0200 |
parents | 1b05a84f6d0f |
children |
line wrap: on
line diff
--- a/Discovery/Src/tComm.c Wed Sep 18 14:30:45 2024 +0200 +++ b/Discovery/Src/tComm.c Wed Sep 18 14:31:06 2024 +0200 @@ -2193,7 +2193,12 @@ break; case BM_CONFIG_SIGNAL_POLL: sprintf(TxBuffer,"AT+BSTPOLL=100\r"); break; - case BM_CONFIG_BAUD: sprintf(TxBuffer,"AT%%B22\r"); + case BM_CONFIG_BAUD: +#ifdef ENABLE_FAST_COMM + sprintf(TxBuffer,"AT%%B22\r"); +#else + BmTmpConfig++; +#endif break; case BM_CONFIG_RETRY: ConfigRetryCnt--; HAL_Delay(1); @@ -2260,7 +2265,7 @@ UartHandle.Init.BaudRate = 460800; HAL_UART_Init(&UartHandle); } - if((BmTmpConfig == BM_CONFIG_BAUD) && (result == HAL_OK) && (UartHandle.Init.BaudRate == 460800)) /* This shut not happen because default speed is 115200 => update module configuration */ + else if((BmTmpConfig == BM_CONFIG_BAUD) && (result == HAL_OK) && (UartHandle.Init.BaudRate == 460800)) /* This shut not happen because default speed is 115200 => update module configuration */ { sprintf(TxBuffer,"AT%%B8\r"); /* set default baudrate */ CmdSize = strlen(TxBuffer);