mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Update xdrv_08_serial_bridge.ino
serial.swap (GPIO13/15) will not work because hardware_fallback==2 is not set. Now it does.
This commit is contained in:
parent
5d977298a2
commit
7ff0f776a6
@ -23,6 +23,7 @@
|
|||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
|
||||||
#define XDRV_08 8
|
#define XDRV_08 8
|
||||||
|
#define HARDWARE_FALLBACK 2
|
||||||
|
|
||||||
const uint8_t SERIAL_BRIDGE_BUFFER_SIZE = 130;
|
const uint8_t SERIAL_BRIDGE_BUFFER_SIZE = 130;
|
||||||
|
|
||||||
@ -104,7 +105,7 @@ void SerialBridgeInit(void)
|
|||||||
{
|
{
|
||||||
serial_bridge_active = false;
|
serial_bridge_active = false;
|
||||||
if (PinUsed(GPIO_SBR_RX) && PinUsed(GPIO_SBR_TX)) {
|
if (PinUsed(GPIO_SBR_RX) && PinUsed(GPIO_SBR_TX)) {
|
||||||
SerialBridgeSerial = new TasmotaSerial(Pin(GPIO_SBR_RX), Pin(GPIO_SBR_TX));
|
SerialBridgeSerial = new TasmotaSerial(Pin(GPIO_SBR_RX), Pin(GPIO_SBR_TX), HARDWARE_FALLBACK);
|
||||||
if (SerialBridgeSerial->begin(Settings.sbaudrate * 300)) { // Baud rate is stored div 300 so it fits into 16 bits
|
if (SerialBridgeSerial->begin(Settings.sbaudrate * 300)) { // Baud rate is stored div 300 so it fits into 16 bits
|
||||||
if (SerialBridgeSerial->hardwareSerial()) {
|
if (SerialBridgeSerial->hardwareSerial()) {
|
||||||
ClaimSerial();
|
ClaimSerial();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user