mirror of https://github.com/arendst/Tasmota.git
Fix Serial Bridge set baudrate regression from 6.6.0.4
Fix Serial Bridge set baudrate regression from 6.6.0.4
This commit is contained in:
parent
779faf5f39
commit
3a63ff3728
|
@ -142,7 +142,8 @@ void CmndSSerialSend(void)
|
|||
void CmndSBaudrate(void)
|
||||
{
|
||||
if (XdrvMailbox.payload > 1200) {
|
||||
Settings.sbaudrate /= 1200; // Make it a valid baudrate
|
||||
XdrvMailbox.payload /= 1200; // Make it a valid baudrate
|
||||
Settings.sbaudrate = XdrvMailbox.payload;
|
||||
SerialBridgeSerial->begin(Settings.sbaudrate * 1200); // Reinitialize serial port with new baud rate
|
||||
}
|
||||
ResponseCmndNumber(Settings.sbaudrate * 1200);
|
||||
|
|
Loading…
Reference in New Issue