mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Improve serial LUA
This commit is contained in:
parent
d7c53fa3a4
commit
43129ca9e2
1 changed files with 4 additions and 2 deletions
|
@ -1612,12 +1612,14 @@ static int luaSetSerialBaudrate(lua_State * L)
|
||||||
|
|
||||||
#if defined(AUX_SERIAL)
|
#if defined(AUX_SERIAL)
|
||||||
if (auxSerialMode == UART_MODE_LUA) {
|
if (auxSerialMode == UART_MODE_LUA) {
|
||||||
auxSerialSetup(baudrate, true);
|
auxSerialStop();
|
||||||
|
auxSerialSetup(baudrate, false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(AUX2_SERIAL)
|
#if defined(AUX2_SERIAL)
|
||||||
if (aux2SerialMode == UART_MODE_LUA) {
|
if (aux2SerialMode == UART_MODE_LUA) {
|
||||||
aux2SerialSetup(baudrate, true);
|
aux2SerialStop();
|
||||||
|
aux2SerialSetup(baudrate, false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue