@@ -333,7 +333,7 @@ void BL0942_UART_Init(void) {
333
333
334
334
bl0942_baudRate = Tokenizer_GetArgIntegerDefault (1 , 4800 );
335
335
336
- UART_InitUART (bl0942_baudRate , 0 );
336
+ UART_InitUART (bl0942_baudRate , 0 , false );
337
337
UART_InitReceiveRingBuffer (BL0942_UART_RECEIVE_BUFFER_SIZE );
338
338
339
339
UART_WriteReg (BL0942_REG_USR_WRPROT , BL0942_USR_WRPROT_DISABLE );
@@ -374,7 +374,7 @@ void BL0942_UART_Init(void) {
374
374
void BL0942_UART_RunEverySecondEx (int adeviceindex , int auartindex ) {
375
375
BL0942_UART_TryToGetNextPacket (adeviceindex , auartindex );
376
376
377
- UART_InitUARTEx (auartindex , bl0942_baudRate , 0 );
377
+ UART_InitUARTEx (auartindex , bl0942_baudRate , 0 , false );
378
378
UART_SendByteEx (auartindex , BL0942_UART_CMD_READ (BL0942_UART_ADDR ));
379
379
UART_SendByteEx (auartindex , BL0942_UART_REG_PACKET );
380
380
}
@@ -398,12 +398,12 @@ void BL0942_UART_RunEverySecond(void) {
398
398
#if ENABLE_BL_TWIN
399
399
int fuartindex = UART_GetSelectedPortIndex ();
400
400
BL0942_UART_TryToGetNextPacket (BL0942_DEVICE_INDEX_0 , fuartindex );
401
- UART_InitUARTEx (fuartindex , bl0942_baudRate , 0 );
401
+ UART_InitUARTEx (fuartindex , bl0942_baudRate , 0 , false );
402
402
UART_SendByteEx (fuartindex , BL0942_UART_CMD_READ (BL0942_UART_ADDR ));
403
403
UART_SendByteEx (fuartindex , BL0942_UART_REG_PACKET );
404
404
#else
405
405
BL0942_UART_TryToGetNextPacket ();
406
- UART_InitUART (bl0942_baudRate , 0 );
406
+ UART_InitUART (bl0942_baudRate , 0 , false );
407
407
UART_SendByte (BL0942_UART_CMD_READ (BL0942_UART_ADDR ));
408
408
UART_SendByte (BL0942_UART_REG_PACKET );
409
409
#endif
0 commit comments